Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay effects support for awtrix_weatherflow.yaml #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
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