Joakim Sørensen 3b38e3ae83
Remove analytics from updater (#17189)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-03-30 22:22:17 +02:00

1.3 KiB

title description ha_category ha_release ha_iot_class ha_quality_scale ha_codeowners ha_domain ha_platforms
Updater Detecting when Home Assistant updates are available.
Binary Sensor
0.8 Cloud Polling internal
@home-assistant/core
updater
binary_sensor

The updater binary sensor will check daily for new releases. The state will be "on" when an update is available. Otherwise, the state will be "off". The newer version, as well as the link to the release notes, are attributes of the updater.

Configuration

This integration is by default enabled, unless you've disabled or removed the default_config: line from your configuration. If that is the case, the following example shows you how to enable this integration manually:

updater:

Notification

For an added bonus, an automation integration can be created to send a message with a notifier when that state of this component's entity changes.

{% raw %}

# Example configuration.yaml entry
automation:
  alias: "Update Available Notification"
  trigger:
    - platform: state
      entity_id: binary_sensor.updater
      from: "off"
      to: "on"
  action:
    - service: notify.notify
      data:
        message: "Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }} is available."

{% endraw %}