I’m having a problem with an automation I’ve written to notify me of an update to HA. I’ve seen the sensor switch to on when I restarted HA, but the automation never triggers. Any suggestions?
- id: update_available_notification
alias: "Update Available Notification"
trigger:
- entity_id: binary_sensor.updaterstate
platform: state
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.updaterstate
state: 'on'
action:
- service: notify.alert_message
data:
message: "Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }} is available."