mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Update to new condition config.
This commit is contained in:
parent
05cce458c8
commit
d9f4e8f771
@ -63,7 +63,7 @@ automation:
|
||||
from: 'not_home'
|
||||
to: 'home'
|
||||
condition:
|
||||
- platform: state
|
||||
- condition: state
|
||||
entity_id: switch.gate
|
||||
state: 'off'
|
||||
action:
|
||||
@ -80,7 +80,7 @@ automation:
|
||||
platform: template
|
||||
value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state != states.device_tracker.beacon_keys.state}}'{% endraw %}
|
||||
condition:
|
||||
platform: template
|
||||
condition: template
|
||||
value_template: {% raw %}'{{ states.device_tracker.greg_gregphone.state != "home" }}'{% endraw %}
|
||||
action:
|
||||
service: script.turn_on
|
||||
@ -91,7 +91,7 @@ automation:
|
||||
platform: template
|
||||
value_template: {% raw %}'{{states.device_tracker.greg_gregphone.state == states.device_tracker.beacon_keys.state}}'{% endraw %}
|
||||
condition:
|
||||
- platform: state
|
||||
- condition: state
|
||||
entity_id: script.send_key_alert
|
||||
state: 'on'
|
||||
action:
|
||||
|
Loading…
x
Reference in New Issue
Block a user