trying to move some pistons from core to webcore and having some issues.
core piston works 100%
webcore (when traced) works (in the sense that the conditions are marked correctly as true/false) but doesn’t actually change the LEDs.
trying to move some pistons from core to webcore and having some issues.
core piston works 100%
webcore (when traced) works (in the sense that the conditions are marked correctly as true/false) but doesn’t actually change the LEDs.
It looks like you want things to happen when presence changes. You have “no triggers” to make the piston execute in webcore. Change the presence from presence is to changes to and see if that works. I am not an expert here and am sure someone else will chime in but thought I would give you something to start with.
I’m sure that this will get the first part of your piston working but am not so sure about the 2nd and 3rd parts.
The conditions are subscribed to events (the orange lightning bolt on the left is the telltale sign) so they’ll behave as triggers.
I think the actions may be the issue, not the conditions. What happens on your devices when you setStatusLed to your various settings? I haven’t used or seen that command used in webCoRE so it might need to be done differently than in core.
the core piston correctly sets the LEDs, I have successfully used webcore to do the same action in different pistons.
this one works fine:
the commands sets (number,color,blink(y/n))
In the snapshot you posted, you can see line #26 evaluated true and the StatusLED was set with properties 3, 0, 0. So the logic is working, but the action is not.
Are you using the same device type handler you did with core? [Sorry, I’m unfamiliar with core so that may be a stupid question].