Skip to content

Commit

Permalink
automation test ios_notify_hass_update
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 committed Mar 4, 2022
1 parent 056028f commit 505ece5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions include/automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,21 @@ automation:
variables:
latest: >
{{ states(trigger.entity_id) }}
installed: >
{{ states('sensor.hass_version_installed') }}
trigger:
- platform: state
entity_id: sensor.hass_version_latest
condition: >
{% set installed = states('sensor.hass_version_installed') %}
{{ installed != latest if '.' in installed and '.' in latest else false }}
action:
- service: homeassistant.update_entity
target:
entity_id:
- sensor.hass_release_notes
- sensor.hass_release_notes_rc
- delay:
minutes: 30
- service: notify.mobile_app_mattias_iphone_ios
data:
title: >
Expand All @@ -219,11 +227,6 @@ automation:
actions:
- action: START_WATCHTOWER
title: Uppdatera
- service: homeassistant.update_entity
target:
entity_id:
- sensor.hass_release_notes
- sensor.hass_release_notes_rc

- alias: ios_notify_hass_update_action
id: '0694774018396'
Expand Down

0 comments on commit 505ece5

Please sign in to comment.