Created
January 25, 2021 22:37
-
-
Save tathamoddie/9f030e5af03c00f6293534984e977b39 to your computer and use it in GitHub Desktop.
This file contains 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: Hot plants | |
trigger: | |
- platform: sun | |
event: sunset | |
offset: '-02:00:00' | |
condition: | |
- condition: and | |
conditions: | |
- condition: numeric_state | |
entity_id: sensor.south_yarra_temp_max_0 | |
above: 30 | |
- condition: numeric_state | |
entity_id: sensor.melbourne_olympic_park_rain_since_9am | |
below: 1 | |
- condition: or | |
conditions: | |
- condition: numeric_state | |
entity_id: sensor.south_yarra_rain_chance_0 | |
below: 75 | |
- condition: numeric_state | |
entity_id: sensor.south_yarra_rain_amount_max_0 | |
below: 2 | |
action: | |
- service: notify.everyone | |
data: | |
message: "🍂🥵 Hot plants! Top of {{ states.sensor.south_yarra_temp_max_0.state_with_unit }} today, with not much respite: {{ states.sensor.melbourne_olympic_park_rain_since_9am.state_with_unit }} since 9am, {{ states.sensor.south_yarra_rain_amount_max_0.state_with_unit }} forecast @ {{ states.sensor.south_yarra_rain_chance_0.state_with_unit }} chance. Time for a sunset drink?" | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment