Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102831

Send notifications on all available updates

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 102831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>