Home Assistant - Be notified about new versions availability

Home Assistant - Be notified about new versions availability

Good evening guys,

I do hope you have had an amazing Sunday!

Since I've received just now a notification from my Home Assistant instance about the availability of the new version 2022.9.2, let me describe what you need in order to get the same notification if you want to be aware of the availability of new versions.

Software configuration

  1. Home Assistant. I'm currently running version?2022.9.1
  2. Mobile App integration?configured in Home Assistant. This integration allows the Home Assistant mobile APP (Android / IOS) to integrate with your Home Assistant environment.
  3. The Version integration must be configured. Thanks to this integration you can get informed about new versions regarding different sources, below what I'm using right now:

  • Local installation. It's the current version you're running (locally).
  • Home Assistant web site. It's the website you read to find out the latest available version.
  • Docker Hub. It's the latest tag published to Docker Hub. I have Home Assistant running on Docker, we'll see how to get it in a further episode.

Each source configured provides two different entities (expect for the Local Installation source):

  • A binary_sensor (ON / OFF) showing if there is a newer version than the one you are currently running.
  • A sensor displaying the newest version published (e.g. 2022.9.2).

Home Assistant code (yaml) / procedure

Based on what above, this is the piece of code you have to write as?Automation:

alias: Android Notification - New HA version available for DockerHUB
description: Android Notification - New HA version available for DockerHUB
trigger:
? - entity_id: binary_sensor.docker_hub_update_available
? ? from: "off"
? ? platform: state
? ? to: "on"
action:
? - data:
? ? ? message: >-
? ? ? ? Home Assistant DockerHUB version {{states('sensor.docker_hub')}}
? ? ? ? is available
? ? service: notify.mobile_app_yourmsartphone        

Some specifics about the code / procedure above

  1. The trigger for this automation is the changing state (from OFF to ON) of the binary.sensor you are monitoring.
  2. The action is sending the notification to your Android smartphone with the indication of the new version available (in this specific case 2022.9.2).
  3. You can also add an entity card to your Home Assistant dashboard displaying the entities provided by the Version Integration. Below what I have:

No alt text provided for this image

Thank you for reading. ?? I hope you have enjoyed this article.

I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below.

Your feedbacks will be appreciated!

Meanwhile,?if you liked this article share it or?subscribe?to my newsletter?about?Home Assistant?to read previous episodes and still up to date on latest news.

要查看或添加评论,请登录

Emiliano Guerzoni的更多文章

社区洞察

其他会员也浏览了