Fixing updater trigger

This commit is contained in:
Jeffrey Stone 2019-10-07 20:30:02 -04:00
parent c936113c7e
commit 051493e1fc
1 changed files with 7 additions and 3 deletions

View File

@ -603,6 +603,7 @@
entity_id: switch.ha_speaker entity_id: switch.ha_speaker
- service: media_player.turn_off - service: media_player.turn_off
entity_id: media_player.theater entity_id: media_player.theater
- service: script.kill_this_ride
initial_state: true initial_state: true
########################## ##########################
@ -612,9 +613,10 @@
alias: New HA alias: New HA
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.updater entity_id: binary_sensor.updater
to: 'on' from: 'off'
to: 'on'
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.new_ha_announcement entity_id: input_boolean.new_ha_announcement
@ -630,4 +632,6 @@
- service: script.twitter_new_ha - service: script.twitter_new_ha
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.new_ha_announcement entity_id: input_boolean.new_ha_announcement
- service: ifttt.trigger
data_template: {"event":"GitPost", "value1":"Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available.", "value2":"{{ states.binary_sensor.updater.attributes.newest_version }}"}
########################### ###########################