State Bonding - Simplified and Easier

New and Improved State Bonding!

My previous State Bonding blueprints were all based on Dual, Trio and Quad models which made them a little unfriendly, so i created a new one that allows any number of entities to be bonded and updated at any time

Entities can be of any type and just need to have a standard “on”/“off” state

blueprint:
  name: State Bonding
  description: Bind entities together to act in unison (selected entites must all support the same on/off state values)
  domain: automation
  input:
    entity_list:
      name: Entities
      selector:
        entity:
          multiple: true

mode: single     
trigger:
  - platform: state
    entity_id: !input entity_list
    from: 'off'
    to: 'on'
  - platform: state
    entity_id: !input entity_list
    from: 'on'
    to: 'off'

condition:
  - condition: template
    value_template: "{{trigger.to_state.state != trigger.from_state.state }}"

action:
  - service: 'homeassistant.turn_{{ trigger.to_state.state }}'
    target: 
      entity_id: !input entity_list

Have Fun :wink:

2 Likes