Created
May 23, 2026 15:27
-
-
Save Philanatidae/19d2f87294af4dfea26f9aa2ef29bbfb to your computer and use it in GitHub Desktop.
Home Assistant Sync Brightness Blueprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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