mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 21:16:28 +01:00
Fix bracket bug
This commit is contained in:
parent
b270fed855
commit
fdaf752a7b
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ template:
|
|||
{% set cond3 = state_attr('weather.hourly', 'forecast')[3].condition %}
|
||||
{% 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) %}
|
||||
{% set cond3_time = as_timestamp(state_attr('weather.hourly', 'forecast')[3].datetime) %}
|
||||
{% if cond3_time > next_setting and cond3_time < next_rising %}
|
||||
{% if cond3 == 'sunny' %} night {% elif cond3 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond3 }} {% endif %}
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue