Created
March 18, 2025 20:41
-
-
Save mediacutlet/fb311b1301ec86743f72ec49db580187 to your computer and use it in GitHub Desktop.
Home Assistant | Tempest Weatherflow Alerts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: "Weather: High Wind Warning" | |
description: "Triggers an alert when high wind gusts are detected." | |
triggers: | |
- entity_id: | |
- sensor.wind_gust_speed | |
above: 12 | |
trigger: numeric_state | |
conditions: | |
- condition: time | |
before: "23:00:00" | |
after: "06:00:00" | |
- condition: template | |
value_template: >- | |
{{ now() - state_attr('automation.high_wind_warning', 'last_triggered') > | |
timedelta(hours=2) }} | |
actions: | |
- parallel: | |
- data: | |
message: >- | |
<speak><voice name='Joanna'><amazon:domain name='conversational'> | |
<amazon:emotion name='excited' intensity='high'> | |
<prosody rate='medium'>Attention, high wind gusts detected.</prosody> | |
</amazon:emotion></amazon:domain></voice></speak> | |
action: notify.alexa_media_living_room | |
- data: | |
message: >- | |
<speak><voice name='Joanna'><amazon:domain name='conversational'> | |
<amazon:emotion name='excited' intensity='high'> | |
<prosody rate='medium'>Attention, high wind gusts detected.</prosody> | |
</amazon:emotion></amazon:domain></voice></speak> | |
action: notify.alexa_media_kitchen | |
mode: single |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: "Weather: Lightning Alert" | |
description: "Triggers alerts and visual notifications when lightning is detected nearby." | |
mode: single | |
triggers: | |
- entity_id: | |
- binary_sensor.lightning_detected | |
from: "off" | |
to: "on" | |
trigger: state | |
- entity_id: | |
- sensor.lightning_strike_count | |
above: 0 | |
trigger: numeric_state | |
conditions: | |
- condition: time | |
before: "22:30:00" | |
after: "06:00:00" | |
- condition: numeric_state | |
entity_id: sensor.lightning_strike_count | |
above: 0 | |
- condition: template | |
value_template: >- | |
{{ now() - state_attr('automation.weather_lightning_alert', 'last_triggered') > timedelta(minutes=30) }} | |
- condition: numeric_state | |
entity_id: sensor.lightning_average_distance | |
below: 10 | |
- condition: state | |
entity_id: binary_sensor.lightning_detected | |
state: "on" | |
actions: | |
- data: | |
scene_id: weather_alert_state_change | |
snapshot_entities: | |
- light.living_room | |
action: scene.create | |
- data: | |
brightness_pct: 100 | |
rgb_color: [255, 0, 0] | |
transition: 1 | |
flash: short | |
target: | |
entity_id: | |
- light.living_room | |
action: light.turn_on | |
- data: | |
message: >- | |
<speak><voice name='Joanna'><amazon:domain name='conversational'> | |
<amazon:emotion name='excited' intensity='high'> | |
<prosody rate='medium'>Alert, lightning detected nearby. | |
Be on the lookout for severe weather.</prosody> | |
</amazon:emotion></amazon:domain></voice></speak> | |
action: notify.alexa_media_living_room | |
- data: | |
message: >- | |
<speak><voice name='Joanna'><amazon:domain name='conversational'> | |
<amazon:emotion name='excited' intensity='high'> | |
<prosody rate='medium'>Alert, lightning detected nearby. | |
Be on the lookout for severe weather.</prosody> | |
</amazon:emotion></amazon:domain></voice></speak> | |
action: notify.alexa_media_office | |
- delay: | |
seconds: 2 | |
- data: | |
color_temp: 420 | |
brightness_pct: 10 | |
target: | |
entity_id: | |
- light.living_room | |
action: light.turn_on | |
- data: | |
transition: 3 | |
target: | |
entity_id: scene.weather_alert_state_change | |
action: scene.turn_on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment