Add inverted target entities input
This commit is contained in:
parent
de8f810321
commit
2c8dc8e03d
|
|
@ -28,6 +28,19 @@ blueprint:
|
|||
- light
|
||||
multiple: true
|
||||
|
||||
target_entities_inverted:
|
||||
name: Target entities (inverted)
|
||||
description: Entities whose state will be synced in reverse
|
||||
default: []
|
||||
selector:
|
||||
entity:
|
||||
filter:
|
||||
domain:
|
||||
- input_boolean
|
||||
- switch
|
||||
- light
|
||||
multiple: true
|
||||
|
||||
mode: restart
|
||||
max_exceeded: silent
|
||||
|
||||
|
|
@ -54,6 +67,11 @@ actions:
|
|||
data: {}
|
||||
target:
|
||||
entity_id: !input target_entities
|
||||
- action: homeassistant.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: !input target_entities_inverted
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: "turn_off"
|
||||
|
|
@ -63,3 +81,8 @@ actions:
|
|||
data: {}
|
||||
target:
|
||||
entity_id: !input target_entities
|
||||
- action: homeassistant.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
entity_id: !input target_entities_inverted
|
||||
|
|
|
|||
Loading…
Reference in a new issue