home_assistant

Recently I decided to create a notification for any available update for my Home Assistant so I can keep everything up to date. I managed to create a nice dynamic Update Notification for Home Assistant with an AI tool.
Below is the YAML file to use. Feel free to change importance and priority from high to other values
Please update the alias(Name) with your prefered name and notify.mobile_app_name with your mobile entity name

alias: Updates Notification - Dynamic
description: ""
triggers:
  - event_type: state_changed
    trigger: event
conditions:
  - condition: template
    value_template: |
      {{ trigger.event.data.old_state is not none
         and trigger.event.data.new_state is not none
         and trigger.event.data.new_state.domain == 'update'
         and trigger.event.data.old_state.state == 'off'
         and trigger.event.data.new_state.state == 'on'
         and not trigger.event.data.new_state.attributes.get('in_progress', false) }}
actions:
  - data:
      title: Update Notification
      message: |
        {{ trigger.event.data.new_state.name }} has a new update available.
      data:
        importance: high
        priority: high
        ttl: 0
        clickAction: /config/updates
    action: notify.mobile_app_name
mode: single

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not very useful for you!

Let us improve this post!

Tell us how we can improve this post?