Synchronizing Two Light Groups with a Single Switch: Challenges and Solutions

Hey everyone, I’ve been diving into the world of smart home automation, and I’m currently working on a project that’s been both exciting and a bit challenging. I’m trying to set up two separate light groups in my bedroom— the main overhead lights and a couple of bedside lamps— to be controlled simultaneously by a single GE dimmer switch. The goal is to have the switch dim both sets of lights at the same time and turn them off and on as if it were controlling all the lights in the room.

I’ve written some Lua code to detect changes in the dimmer switch and adjust the bedside lamps accordingly. I noticed that the lamps seem to be twice as bright as the main lights at the same dimmer settings, so I adjusted the code to halve the dim setting for the lamps. This seems to work when controlling through Vera or the iVera iPhone app, but there’s a significant lag— up to a minute— when using the physical switch, making it practically unusable.

Am I approaching this the right way? Is there a more efficient method to achieve seamless control of both light groups with minimal latency? I’d love to hear from anyone who has tackled a similar project or has insights into optimizing switch responsiveness. Your experiences and tips would be invaluable as I refine this setup. Thanks in advance for your help!