Add inverted target entities input

This commit is contained in:
TheThomaas 2026-03-01 12:06:53 +01:00
parent de8f810321
commit 2c8dc8e03d

View file

@ -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