I have a contact sensor that when it opens, I want a light to turn on. I've tried setting this up in webcore, but when the contact sensor changes state it doesn't trigger the piston. I can setup the same thing in Rule Machine and it works perfectly. the device state in hubitat updates when the pantry door opens and closes just like it should, but this is causing my piston to be evaluated in webcore. the logs are empty and nothing happens.
I think there should be a little lightning bolt to the left. I've seen instances like that and was able to fix it by manually specifying the subscription state as always subscribe.
It's should work like that but I believe because it also has a trigger in the position it's subscribing to that. So if you change it from "is open" to "changes to open" it will work.
Changing it to “changes to” worked, but this broke the “else turn off”. I had to write a separate statement for when the door closes, but it’s working now.
It shouldn't do? Another option would be to do this
If contact "changes" and switch 13 is on
Then turn switch off
Else turn switch on
That should work fine
Hi all, I experienced similar issues recently when moving from SmartThings to HE and imported my piston. It was the weirdest behavior as the light would only turn on precisely every second time a closet door were opened. Checking the full piston log it would tell me the action (to turn the lamp on) was cancelled as it was already turned on.
I changed the settings of the piston to disable command optimization, and things started working as expected. Now I'll leave it open to the true webcore experts around here to explain why this is potentially a bad thing to do, nevertheless it seems to have solved the issue in my case.
Anyway, if you haven't messed with piston settings before, when editing, click on the blue settings word right under the comment header, then click the gear icon and you'll find it.
Btw, here's a green snapshot of my closet light piston. As you can see, the master bedroom closet is handled differently from the hallway closet. Reason being that the former has two doors and two lamps inside, where the hallway close is just 1 contact sensor + 1 smart bulb.