🔧 use update entity for release notifications

This commit is contained in:
James Walker 2023-01-06 23:48:46 -05:00
parent 4d09fdc93a
commit fddd7ffbbe
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 6 additions and 5 deletions

View File

@ -1 +1 @@
2022.12.0 2023.1.1

View File

@ -1,11 +1,12 @@
# Example configuration.yaml entry # Get notifications when new updates are available
- alias: "Update Available Notification" - alias: "Update Available Notification"
id: "ae8b75ea-0914-4816-a772-4d0224b262fa"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.home_assistant_website_update_available entity_id: update.home_assistant_core_update
from: "off"
to: "on" to: "on"
action: action:
- service: notify.notify - service: notify.notify
data: data:
message: "Home Assistant {{ states('sensor.home_assistant_website') }} is available." title: "New update available"
message: "Home Assistant Core update is available."