Can you please add a momentary button

As Bill says, if you want the client side behavior to be predictable, then a function within the device should handle the off.

Here’s what I was thinking. If you guys handle a button that resets itself graphically, and offer up some sample code when adding the object, then golden.

The pulse function looks like it would do the trick.

int pulse(int pin, long period, int startingValue)

Cheers,

Craig