I’m trying to bring over some pistons from Core. But one aspect never worked right there, so I want to do it right here.
I want a motion sensor to trigger a light on with motion, and then off (wait 50 seconds) if motion ceases (cancel on condition change). If the light is already OFF. I want nothing to happen if the light was previously on.
The piston runs fine when the light is off, But it still triggers when the light is on. Either adjusting levels or shutting them off when motion changes to false. I have always used the condition/restriction of Switch is Off. But perhaps that is the wrong thing for Hue bulbs. With Hue, my physical in the wall switches are always on. Does that make a difference? I’ve also tried Level = 0 and that didn’t seem to work at all. Does anyone use a…if light is already on do nothing sort of scenario? And what do you use to indicate bulb off?
I don’t have a tested piston in WebCore yet. I drafted one today, but it looks different (had Latching in Core). And I’m not sure where to put the if motion goes off section in this style.(so this may be wrong here) But really, I’m not so much asking about that for this piston, as just determining how to make it work with knowing when the Hub bulb is on or off when the physical switch is always on.
Thanks