[FIX] State checks for multiple entities simultaneously
This commit is contained in:
@@ -162,13 +162,10 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target: !input entity_target
|
target: !input entity_target
|
||||||
- wait_for_trigger:
|
|
||||||
platform: state
|
|
||||||
entity_id: !input motion_sensors
|
|
||||||
to: "off"
|
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: !input motion_sensors
|
entity_id: !input motion_sensors
|
||||||
|
match: any
|
||||||
state: "on"
|
state: "on"
|
||||||
then:
|
then:
|
||||||
- wait_for_trigger:
|
- wait_for_trigger:
|
||||||
|
|||||||
Reference in New Issue
Block a user