Is it possible to update the state of a device without logging an event, or alternatively control on a per-event basis the retention? The scenario is I've written a custom driver for monitoring a Cummins standby generator. Some state changes such as utility power loss or generator start I'd like to have a long retention on. Other state changes such as last update time, voltage, frequency change all the time and the history is less interesting. I'm using sendEvent for sending the state changes. It's marked as TBD in the docs so I'm guessing what the various options are in the samples.
Once I have the driver fully stabilized, I'll post it to github.
