mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Change condition example to use the lowercase 'on' state (#1500)
HA normally uses a lowercase 'on' state: 32ffd006fa/homeassistant/const.py (L160)
This commit is contained in:
parent
d3e5b9865c
commit
39dd48d1ce
@ -11,7 +11,7 @@ footer: true
|
|||||||
|
|
||||||
Conditions are an optional part of an automation rule and can be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off.
|
Conditions are an optional part of an automation rule and can be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off.
|
||||||
|
|
||||||
The available conditions for an automation are the same as for the script syntax. So see that page for a [full list of available conditions][script-condition].
|
The available conditions for an automation are the same as for the script syntax so see that page for a [full list of available conditions][script-condition].
|
||||||
|
|
||||||
Example of using condition:
|
Example of using condition:
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ Example of using condition:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: sensor.mini_despacho
|
entity_id: sensor.mini_despacho
|
||||||
to: 'ON'
|
to: 'on'
|
||||||
condition:
|
condition:
|
||||||
condition: or
|
condition: or
|
||||||
conditions:
|
conditions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user