renemarc/home-assistant-config

View on GitHub
automations/update_verify.yaml

Summary

Maintainability
Test Coverage
#
# Check for new Home Assistant version availability
#
- id: update_verify
  alias: "Update VERIFY"

  trigger:
    # When Home Assistant starts.
    - platform: homeassistant
      event: start

    # Every 6 hours.
    - platform: time_pattern
      hours: '/6'
      minutes: 00
      seconds: 00

  action:
    # Wait a while so that everything is ready.
    - delay:
        seconds: 30

    # Force a refresh of the updater component.
    - service: homeassistant.update_entity
      entity_id: binary_sensor.updater