It would be nice to be able to set state of a device B = state of device A.

I explain the issue I have:
I currently have on most rooms more than one light and I want to turn them all with the push of a button so I create a dummy switch named Bedroom lights for example, and then I create the following rules:
When switch is on turn dummy switch on
When switch is off turn dummy switch off
And then two more to control de devices itselves:
When dummy switch is on then turn light 1 on
When switch is off then turn light 1 off

I end up with 4 rules to control two lights.

It would be great to be able to configure a device to “mimic” the state of anotherone