Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions blueprints/automation/awtrix_weatherflow.yaml
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add a toggle button to turn these effects on/off before I can merge

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's on me! I had completely forgotten about this PR. i'm away at the moment but i should be able to patch it up next week and resolve the conflicts + make the selection to turn the weather effect on/off!

Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,30 @@ variables:
{%- else %}
{{ icon_dict[current_condition] }}
{%- endif %}

#--------------
# Weather Overlay
#--------------
overlay_dict: >-
{{ dict({'clear-night': 'clear',
'cloudy': 'clear',
'exceptional': 'clear',
'fog': 'clear',
'hail': 'frost',
'lightning': 'thunder',
'lightning-rainy': 'thunder',
'partlycloudy': 'clear',
'pouring': 'storm',
'rainy': 'drizzle',
'snowy': 'snow',
'snowy-rainy': 'snow',
'sunny': 'clear',
'windy': 'clear',
'windy-variant': 'clear'})}}

overlay: >
{{ overlay_dict[current_condition] }}

#-----------
# Moon Icon
#-----------
Expand Down Expand Up @@ -845,7 +869,7 @@ variables:

trigger:
- platform: time_pattern
seconds: /5
minutes: /1
- platform: state
entity_id: !input forecast_var
id: Changes
Expand Down Expand Up @@ -956,7 +980,8 @@ action:
"pushIcon": 2,
"lifetime": 120,
"lifetimeMode":1,
"weather": "{{current_condition}}"
"weather": "{{current_condition}}",
"overlay": "{{overlay}}"
}

- service: mqtt.publish
Expand Down