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:
Matt N 2016-11-26 09:01:43 -08:00 committed by Fabian Affolter
parent d3e5b9865c
commit 39dd48d1ce

View File

@ -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.
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:
@ -20,7 +20,7 @@ Example of using condition:
trigger:
platform: state
entity_id: sensor.mini_despacho
to: 'ON'
to: 'on'
condition:
condition: or
conditions: