Hey everyone, I’ve been trying to figure out how to use my Fibaro keyfob to toggle the on/off state of a light group with a single button press. Currently, my setup uses two routines—one for turning the lights on and another for turning them off. However, when I press the button, both routines seem to execute, leaving the lights off every time. It’s a bit frustrating because I just want a simple toggle function.
I came across the Mirror virtual driver in Mc and thought it might be the solution. After some research and experimentation, I managed to set it up! Here’s how I did it:
- Create a Virtual Switch: I set up a virtual switch in Mc using the Mirror driver. This acts as an intermediary between the keyfob button press and the light group.
- Configure the Routines: I adjusted my existing routines so that pressing the button toggles the virtual switch. This means the virtual switch’s state changes with each button press.
- Link to Light Group: I linked the virtual switch’s state to the light group. Now, when the virtual switch is on, the lights turn on, and when it’s off, the lights turn off.
This setup works perfectly! A single button press now toggles the light group without any issues. It’s a neat workaround and makes my keyfob much more versatile. I hope this helps someone else who’s struggling with a similar problem. Let me know if you have any questions or suggestions!
Cheers,
[Your Name]