Only One Switch "On" At Any One Time

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)

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

View source code

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 and homeassistant.turn_off or errors will be logged and the blueprint will not work.

  • Requires Home Assistant 2022.5.0 or newer.

Credits

Change Log

v1.0.1

  • fixed a mistake where I forgot to change switch.turn_off back to the generic homeassistant.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 and Ignore State