ElVit / netdaemon-notify-on-update

[DEPRECATED] Creates a notification in Home Assistant if there is an update available

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hacs_badge netdaemon_badge

DEPRECATED

NetDaemon apps are deprecated and will be removed in version 2.0.0 of HACS.
Note that apps that use current V3 version of the NetDaemon runtime is not supported at all.
See HACS Notice


NetDaemonApp: Notify on Update

A NetDaemon App that will notify you if there is an update available in Home Assistant.
This notification can be set as a persistent notification or send to your mobile devices if you are using the companion app.

This App can display updates for:

  • Home Assistant Core
  • Home Assistant OS
  • Home Assistant Supervisor
  • Home Assistant Addon's
  • HACS Repositories

Installation

  1. Install the NetDaemon V3.X Addon
  2. Change the addon option "app_config_folder" to "/config/netdaemon"
  3. Install HACS
  4. In Home Assistant go to HACS -> Automation -> Add repository -> Search for "Notify on Update"
  5. Download this repository with HACS
  6. Restart the NetDaemon V3 Addon

Configuration

Example configuration:

NotifyOnUpdate.NotifyOnUpdateConfig:
  UpdateTimeInSec: 60
  NotifyTitle: πŸŽ‰ Updates available πŸŽ‰
  NotifyId: updates_available
  PersistentNotification: true
  ShowiOSBadge: true
  GetUpdatesMechanism: rest_api
  GetUpdatesFor:
    - Core
    - OS
    - Supervisor
    - HACS
  MobileNotifyServices:
    - notify.mobile_app_myphone

Options:

Option: UpdateTimeInSec

Defines the update time in seconds to search for new updates.
This time does not apply to HACS repository updates because they are taken instantly from the "sensor.hacs" entity.
Default value:     30

Option: NotifyTitle

Defines the title of the notification.
Default value:     Update available in Home Assistant

Option: NotifyId

Defines the id of the notification so it can be updated.
Default value:     updates_available

Option: PersistentNotification

The persistent notification can be disabled if only mobile notifications are preferred.
Default value:     true

Option: ShowiOSBadge

If set to true you will see the count of updates in the app icon badge of the iOS companion app.
Default value:     true

Option: GetUpdatesMechanism

Home Assistant 2022.4 introduced a new feature called update entity.
To use this feature just set this option to update_entities.
To use the old mechanism to get updates set this option to rest_api.
Possible values:   update_entities, rest_api.
Default value:     update_entities

NOTE: If this option is set to update_entities then the option GetUpdatesFor will have no effect.

Option: GetUpdatesFor

Here you can define a list of update types to be displayed when a new update is available.
Possible values:   Core, OS, Supervisor, HACS.
Default value:     none

NOTE: If the Supervisor updates are disabled then you will also NOT be notified about any Home Assistant addon updates.

Option: MobileNotifyServices

A list of notify services for mobile apps like the iOS or Android companion app.
If the notify service is valid then a notify message will be sent to your mobile device as soon as there is an update available.
The notify service can be definded like "notify.mobile_app_myphone" or just "mobile_app_myphone".
Default value:     none

Contribution

This App was developed with help of this Home Assistant Community Thread:
https://community.home-assistant.io/t/update-notifications-core-hacs-supervisor-and-addons/182295

Also a special thanks to FrankBakkerNl and helto4real for their support during development via discord.

About

[DEPRECATED] Creates a notification in Home Assistant if there is an update available

License:MIT License


Languages

Language:C# 100.0%