Skip to content

Commit

Permalink
updated sunny_night settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor committed Sep 18, 2023
1 parent e8fe2a9 commit 555fbbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blueprints/automation/awtrix_weatherflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ variables:
{%- set ts_rise = rise |as_timestamp %}
{%- set ts_set = set |as_timestamp %}
{{ iif(ts_set < ts_rise,'sunset','sunrise') }}
sun_min_until_next_event: >-
{%- set rise = state_attr('sun.sun','next_rising') %}
{%- set set = state_attr('sun.sun','next_setting') %}
Expand Down Expand Up @@ -828,7 +829,7 @@ variables:
{%- if weather == 'clear-night' and use_moon_clear_night -%}
{{draw_moon(moon_phase,0,0)}}
{%- elif weather == 'sunny' and use_moon_sunny_night -%}
{%- elif(sun_next_event == 'sunrise') and use_moon_sunny_night and (weather == 'sunny') -%}
{{draw_moon(moon_phase,0,0)}}
{%- else -%}
{{draw_moon(moon_phase,23,0)}}
Expand Down

0 comments on commit 555fbbf

Please sign in to comment.