Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Created January 25, 2021 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tathamoddie/9f030e5af03c00f6293534984e977b39 to your computer and use it in GitHub Desktop.
Save tathamoddie/9f030e5af03c00f6293534984e977b39 to your computer and use it in GitHub Desktop.
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