mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 21:16:28 +01:00
Update sensor.yaml
error with using && - changed to and.
This commit is contained in:
parent
42b8176ed1
commit
b270fed855
1 changed files with 4 additions and 4 deletions
|
|
@ -66,7 +66,7 @@ template:
|
|||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond0_time = as_timestamp(state_attr('weather.hourly', 'forecast')[0].datetime) %}
|
||||
{% if cond0_time > next_setting && cond0_time < next_rising %}
|
||||
{% if cond0_time > next_setting and cond0_time < next_rising %}
|
||||
{% if cond0 == 'sunny' %} night {% elif cond0 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond0 }} {% endif %}
|
||||
{% else %}
|
||||
{{ cond0 }}
|
||||
|
|
@ -80,7 +80,7 @@ template:
|
|||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond1_time = as_timestamp(state_attr('weather.hourly', 'forecast')[1].datetime) %}
|
||||
{% if cond1_time > next_setting && cond1_time < next_rising %}
|
||||
{% if cond1_time > next_setting and cond1_time < next_rising %}
|
||||
{% if cond1 == 'sunny' %} night {% elif cond1 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond1 }} {% endif %}
|
||||
{% else %}
|
||||
{{ cond1 }}
|
||||
|
|
@ -94,7 +94,7 @@ template:
|
|||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond2_time = as_timestamp(state_attr('weather.hourly', 'forecast')[2].datetime) %}
|
||||
{% if cond2_time > next_setting && cond2_time < next_rising %}
|
||||
{% if cond2_time > next_setting and cond2_time < next_rising %}
|
||||
{% if cond2 == 'sunny' %} night {% elif cond2 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond2 }} {% endif %}
|
||||
{% else %}
|
||||
{{ cond2 }}
|
||||
|
|
@ -108,7 +108,7 @@ template:
|
|||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond3_time = as_timestamp(state_attr('weather.hourly', 'forecast')[3]].datetime) %}
|
||||
{% if cond3_time > next_setting && cond3_time < next_rising %}
|
||||
{% if cond3_time > next_setting and cond3_time < next_rising %}
|
||||
{% if cond3 == 'sunny' %} night {% elif cond3 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond3 }} {% endif %}
|
||||
{% else %}
|
||||
{{ cond3 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue