mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update to new condition config.
This commit is contained in:
parent
05cce458c8
commit
d9f4e8f771
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user