Can I find when the last time a physical switch (inovelli lzw31-sn) was used?
I see there's lastEvent and lastActivity in Custom Attributes, but neither of these are what I'm looking for.
I can't use lastActivity because that updates for reasons besides state change (like when it reports on energy).
I can't use lastEvent is because if in the beginning of the rule the lastEvent was TapUp, then someone tapped up again, lastEvent at the end of the rule will still simply show TapUp-- I wont know that someone has pushed a button on the switch.
in the device's Events page, the lastEvent row has a Date field-- can i test against that (or save that as a variable) ?