mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update restart_ha_if_wemo_switch_is_not_detected.markdown (#591)
This commit is contained in:
parent
a833efa18a
commit
cd648c06f3
@ -68,9 +68,9 @@ automation:
|
|||||||
from: 'not_home'
|
from: 'not_home'
|
||||||
to: 'home'
|
to: 'home'
|
||||||
condition:
|
condition:
|
||||||
- platform: template
|
- condition: template
|
||||||
value_template: {% raw %}'{% if states.switch.wemo %}false{% else %}true{% endif %}'{% endraw %}
|
value_template: {% raw %}'{% if states.switch.wemo %}false{% else %}true{% endif %}'{% endraw %}
|
||||||
- platform: state
|
- condition: state
|
||||||
entity_id: script.restarthawemo
|
entity_id: script.restarthawemo
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
@ -88,7 +88,7 @@ automation:
|
|||||||
platform: template
|
platform: template
|
||||||
value_template: {% raw %}'{% if states.switch.wemo %}true{% else %}false{% endif %}'{% endraw %}
|
value_template: {% raw %}'{% if states.switch.wemo %}true{% else %}false{% endif %}'{% endraw %}
|
||||||
condition:
|
condition:
|
||||||
platform: state
|
condition: state
|
||||||
entity_id: script.restarthawemo
|
entity_id: script.restarthawemo
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user