Webcore - Use switch Auto-off in device page or programatically turn it off?

There are several possibilities:

a) you are subscribed to device:switch attribute.

  • You are correct every time switch attribute changes, the piston will get an event

b) you are subscribed to device:switch:on.

  • you only get only on events (assuming you use the proper comparison)

Event are typically processed by webcore in order, on, then off is seen by the piston as two sequential events.

None of this is a problem per se. Whether this piston does the turn off or some other piston/app/device, this piston will still get the same events...

There is more on this in the webcore wiki articles:

1 Like