I have a Fibaro keyfob. Currently programmed with routines, so that when a button is pressed, a light group is turned on, or when button is held, the light group is turned off.
Would it be possible to use the Mc virtual mirror to use a single button click to “toggle” the on/off state of the light group?
I’ve set up two routines, one in each direction but the one click executes both routines each time so I always end up with the final state (off)
I don’t know if I understand your question correctly.
If you want to change the state of the light group every time you press a button on the fibaro remote, you don’t need any mirror device.
You can perform a quick action with any button and choose the turn off/on action.
This example with pressing button 3 and changing the status on or off of the group of lights:
urn off/on action.
I am wanting to “toggle” a light group on or off. i,.e. if they lights are on, pressing the button will turn them off. If the lights are off, the button will turn them on.
I find the “Turn on or turn off” option only works one way. i.e. it will turn off, but never back on again
You’re right, the light group turns off when it’s on but doesn’t turn on when it’s off.
for individual lights it works fine and should work for groups as well.
You should open a report to smartthings
Ah cool, I thought I was going mad!
I’ve never raised an issue with smart things. How do I do that?
In the mean-time, how would you suggest I work around this? (hence why I was trying to make a virtual switch work.)
@nayelyz can help to do this issue report.
You can do two quick actions in your fibaro app detaill view:
ok, I see. This is what I currently have.
I am a software developer. I wonder if I could develop some kind of toggle switch virtual device? I know nothing about developing for smartthings. Are there any good tutorials you recommend?
you can create a virtual switch that receives the switch on/off command of the button.
Then you have to do two routines one to turn on the group when the switch is turned On and another to turn it Off.
You can create a mirror switch with Aplicaciones Virtuales Mc driver
or others with community drivers
(New Release)Edge Driver Aplicaciones Virtuales Mc (virtual Switch Mirror, virtual Switch Board, Text and Number Fields):
Version with Text Field and Number Field
Link to versión with Virtual Calendar
Link to version with device Timer Number of Days
Link to version with capability Local Week Day in Virtual Calendar
While we wait for the stock mirror routine to arrive.
This driver creates virtual devices to be able to automate state synchronization between a real device and this virtual mirror device, writing 2 routines instead of 4 routines without entering an infinite loop.
Install the driver on your Hub from the channel
In the App add a new device and Search nearby.
The “MAIN Virtual Mirror” device will appear on devices without an assigned room. It will indicat…
@Mark_McGee if you want to inform about an issue on SmartThings, you can send a mail to firstname.lastname@example.org with the description and the evidence. or you can send me a message with that information and I will create the report
If you could send that would be great. Might be taken more seriously if it comes from you
So this is what happens;
Fibaro keyfob button press configured to set “turn on or turn off” on a lighting group.
Start with lighting group on
press the button once, the routine executes and turns the lighting group off
press the button again, nothing happens - the lighting group stays off
I can confirm that I’ve noticed some time back that a routine with button ‘on or off’ when pressed, only ever switched on->off, but not off->on, a virtual switch I have, that depending if ‘open’ or ‘closed’ triggers a different Alexa routine.
I imagined that was an inherent characteristic and so set up 2 rules with IF on, THEN switch off, and vice versa.
Reading your post, and @Mariano_Colmenarejo 's reply - this is bug maybe?
The issue I’ve had with assigning two routines to the same action is that the first executes and turns the lights off, then the second one executes and flips them back off again!