Skip to content

Instantly share code, notes, and snippets.

@aderusha
Last active February 3, 2026 20:18
Show Gist options
  • Select an option

  • Save aderusha/4f25658dbb855675b5b5ccf296fd801b to your computer and use it in GitHub Desktop.

Select an option

Save aderusha/4f25658dbb855675b5b5ccf296fd801b to your computer and use it in GitHub Desktop.
Home Assistant Blueprint: Link Multiple Switches v1.0.1
@kingy444
Copy link

kingy444 commented Feb 2, 2023

Can i suggest updating the domain filter to allow binding a switch to a light state aswell - basically allows a physical switch to control the state of the light and the state of the light to switch - so it doesnt matter which entity is switched

          domain: 
            - switch
            - light

@kingy444
Copy link

This one too to prevent unavailable states

trigger:
- platform: state
  entity_id: !input switches
  to:
    - 'off'
    - 'on'

@fugato44
Copy link

fugato44 commented Oct 4, 2024

The last condition for me causes a 30% of failures in the sync of the entities. I think is not usefull and when removed everything works fine becasue the save exist if on the state

Could someone explain what the last condition meant to do? I can't understand the intent..

@thephenakist
Copy link

Could someone explain what the last condition meant to do? I can't understand the intent..

It looks like the last condition is intended to prevent recursion (i.e. infinite toggling of the switch state). The effectiveness of this condition will depend on the to_state's context parent ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment