Skip to content

Instantly share code, notes, and snippets.

@Philanatidae
Created May 23, 2026 15:27
Show Gist options
  • Select an option

  • Save Philanatidae/19d2f87294af4dfea26f9aa2ef29bbfb to your computer and use it in GitHub Desktop.

Select an option

Save Philanatidae/19d2f87294af4dfea26f9aa2ef29bbfb to your computer and use it in GitHub Desktop.
Home Assistant Sync Brightness Blueprint
blueprint:
name: Light Brightness Sync
description: Sync on-off-state and brightness between a mirror and a reference lamp
domain: automation
input:
reference:
name: Reference
description: This light will be referenced
selector:
entity:
domain: light
mirror:
name: Mirror
description: This light will mirror the Reference
selector:
entity:
domain: light
variables:
reference_entity: !input reference
mirror_entity: !input mirror
triggers:
- trigger: state
entity_id: !input reference
actions:
- choose:
- conditions:
- condition: state
entity_id: !input reference
state: "off"
sequence:
- action: light.turn_off
target:
entity_id: !input mirror
- conditions:
- condition: state
entity_id: !input reference
state: "on"
sequence:
- choose:
- conditions: []
sequence:
- action: light.turn_on
target:
entity_id: !input mirror
data:
brightness: "{{ state_attr(reference_entity, 'brightness') }}"
mode: restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment