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

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