|
|
|
@ -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 %}
|
|
|
|
|