Have 2 dimmers mirror each other

Hi,

Still a greenhorn regarding Home Assistant, but…
I’m just wondering if it is possible to mirror a entity to another entity?

I have a stairwell with 2 namron z-wave dimmers.
The first on the ground floor, controlling the lights in the lower part of the stairs.
The second on the second floor, controlling the lights on the upper part of the stairs.

Is it possible, without to much work, to make those two mirror each other?

So if I turn the first dimmer to ex 50%, then dimmer number 2 also is set to 50%.
And say I later adjust dimmer number 2 to 75%, then dimmer number 1 is also set to 75%

Yes, via automations.

Automation 1
The trigger will be a state change on dimmer 1, action will be change dimmer 2’s state to be the same.
Automation 2
The mirror image of automation 1.

1 Like

Hi nickrout! I’m somewhat of a newbie here. I’ve spent quite some time trying to figure this out but I just can’t seem to get it. I feel like I’m missing something stupid. Can you be a little more specific on how to do this? Thanks!

Ok, I really put effort into trying to figure this out but I just cant get a light to mirror another light. Through searching I found ways to do it by adding to the configuration.yaml but I would really like to add it in Automations. I have been able to create some pretty complicated automations but this one has me stuck.

I appreciate if anyone can point me in the right direction. Thanks!

Try something like this

alias: mirrored light1
description: ''
trigger:
  - platform: state
    entity_id: light.dining_table_lights
condition: []
action:
  - service: light.turn_on
    target:
      entity_id: light.kitchenbench_lights
    data:
      brightness: {state_attr('light.dining_table_lights', 'brightness')}
mode: single

And of course a mirror of that.