I have a Shelly1 wired to a switch, and a lamp at the other end of the room with a smart module connected to it. The switch is a momentary switch so the shelly alternates on/off with each press.
The sole purpose of the Shelly is to signal to homeseer to turn on the lamp. The shelly in no way is wired to the lamp and cant control it directly.
Here's my issue. The lamp can be controlled by other switches hence its important to keep the shelly in sync with the lamp or else the shelly will try to turn the lamp on when its already on and off when its already off.
I wrote two events that basically say "turn lamp on when shelly is turned on" and turn "shelly on when lamp is turned on". Another two events for turning things off.
So the problem is when another device turns the lamp on, the shelly is turned on too, but because the shelly is turned on, it sends another turn on request to the lamp. As far as I can tell, it stops at 2 turn on requests whenever the lamp is turned on or off. It isnt an infinite loop.
So is this bad? Is there another way to keep these devices in sync thats more elegant? I tried the "sync" check box for both devices but it doesnt work.
The sole purpose of the Shelly is to signal to homeseer to turn on the lamp. The shelly in no way is wired to the lamp and cant control it directly.
Here's my issue. The lamp can be controlled by other switches hence its important to keep the shelly in sync with the lamp or else the shelly will try to turn the lamp on when its already on and off when its already off.
I wrote two events that basically say "turn lamp on when shelly is turned on" and turn "shelly on when lamp is turned on". Another two events for turning things off.
So the problem is when another device turns the lamp on, the shelly is turned on too, but because the shelly is turned on, it sends another turn on request to the lamp. As far as I can tell, it stops at 2 turn on requests whenever the lamp is turned on or off. It isnt an infinite loop.
So is this bad? Is there another way to keep these devices in sync thats more elegant? I tried the "sync" check box for both devices but it doesnt work.
Comment