I have the awesome NHL sensor setup and I’m trying to setup an automation that triggers the day before a scheduled game is to take place. I can’t seem to figure out how to use the TIME template condition.
Basically I want to grab the time and date of the sensor (strptime I assume) and if it’s 1 day before that date then send a notification.
This is what I have so far and it does work:
- alias: Next Scheduled Game
trigger:
platform: state
entity_id: sensor.nhl_hockey
action:
- service: notify.pushover
data:
message: "Next Scheduled Game: {{ states('sensor.next_game_date') }}, {{ states('sensor.next_game_time') }} "