Update to new condition config.

This commit is contained in:
pavoni 2016-05-20 21:58:11 +01:00
parent 05cce458c8
commit d9f4e8f771

View File

@ -63,7 +63,7 @@ automation:
from: 'not_home' from: 'not_home'
to: 'home' to: 'home'
condition: condition:
- platform: state - condition: state
entity_id: switch.gate entity_id: switch.gate
state: 'off' state: 'off'
action: action:
@ -80,7 +80,7 @@ automation:
platform: template platform: template
value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state != states.device_tracker.beacon_keys.state}}'{% endraw %} value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state != states.device_tracker.beacon_keys.state}}'{% endraw %}
condition: condition:
platform: template condition: template
value_template: {% raw %}'{{ states.device_tracker.greg_gregphone.state != "home" }}'{% endraw %} value_template: {% raw %}'{{ states.device_tracker.greg_gregphone.state != "home" }}'{% endraw %}
action: action:
service: script.turn_on service: script.turn_on
@ -91,7 +91,7 @@ automation:
platform: template platform: template
value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state == states.device_tracker.beacon_keys.state}}'{% endraw %} value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state == states.device_tracker.beacon_keys.state}}'{% endraw %}
condition: condition:
- platform: state - condition: state
entity_id: script.send_key_alert entity_id: script.send_key_alert
state: 'on' state: 'on'
action: action: