Update conditions.markdown (#22192)

This commit is contained in:
OzGav 2022-03-30 17:27:16 +10:00 committed by GitHub
parent d41c8f5005
commit 91757cde17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,8 +209,8 @@ condition:
condition: state condition: state
entity_id: alarm_control_panel.home entity_id: alarm_control_panel.home
state: state:
- armed_away - "armed_away"
- armed_home - "armed_home"
``` ```
Or, combine multiple entities with multiple states. In the following example, Or, combine multiple entities with multiple states. In the following example,
@ -223,8 +223,8 @@ condition:
- media_player.living_room - media_player.living_room
- media_player.kitchen - media_player.kitchen
state: state:
- playing - "playing"
- paused - "paused"
``` ```
Alternatively, the condition can test against a state attribute. Alternatively, the condition can test against a state attribute.
@ -235,7 +235,7 @@ condition:
condition: state condition: state
entity_id: climate.living_room_thermostat entity_id: climate.living_room_thermostat
attribute: hvac_modes attribute: hvac_modes
state: heat state: "heat"
``` ```
Finally, the `state` option accepts helper entities (also known as `input_*` Finally, the `state` option accepts helper entities (also known as `input_*`