Hi there
So, the updater is deprecated, but we have the new update class. Amazing, but:
automation:
- alias: "Send notification when update available"
trigger:
platform: state
entity_id: update.my_light_bulb
to: "on"
action:
alias: "Send notification to my phone about the update"
service: notify.iphone
data:
title: "New update available"
message: "New update available for my_light_bulb!"
Source: Update - Home Assistant
So this sends a notification for updates on a specific integration.
What about a generic solution?
automation:
- alias: "Send notification when update available"
trigger:
platform: state
entity_id: update.* #here, all update entities!
to: "on"
action:
alias: "Send notification to my phone about the update"
service: notify.iphone
data:
title: "New update available"
message: "{{ trigger.to_state.name | default('trigger is not defined') }} has updates! "
I know, I’ve created something earlier, but TBH, I forgot how to template that. Could one help out?
1 post - 1 participant