How to post an event with no state change?

Is there a way to force emit_event to post to device history when the event has no change, similar to the isStateChange option in Groovy?

local ev = capabilities.button.button.pushed()
ev.state_change = true

You may take a look at my source code of Hue Dimmer Switch Edge Driver.


Perfect. Thank you!

1 Like