Only One Switch “On” At Any One Time v1.0.2
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
It ensures “only one” entity (from the linked entities) is “On” at any given time
Select multiple entities to link their single “On” exclusive state.
If any selected entity is turned on, all the other entities in the group are turned off (allowing only one entity to be on at any one time)
You can select any entity, but only entities supported by the homeassistant.turn_on
or homeassistant.turn_off
service calls will work.
Requirements
-
All selected entities MUST suport
homeassistant.turn_on
andhomeassistant.turn_off
or errors will be logged and the blueprint will not work. -
Requires Home Assistant 2022.5.0 or newer.
Credits
- @luma for the improved/fixed blueprint I used to created this variant
- @adchevrier for the initial blueprint
- @hebus for this fantastic template
Change Log
v1.0.1
-
fixed a mistake where I forgot to change
switch.turn_off
back to the generichomeassistant.turn_off
. -
fixed an issue where entities that were already off where being switched off again, causing unnecessary triggered actions.
v1.0.2
-
added input to define the wait time before actioning the turning off of other entities after moment of trigger.
-
added input to define action turn off type
Consider State
andIgnore State
’