I’m interested in trying to add some handling for dead or misbehaving battery based nodes. Currently, I have polling configured and the devices are responding as expected. However, the attributes and values are unchanged on poll and I can’t find anything to examine that actually shows the device reported in even though there were no changes.
Based on this page: https://home-assistant.io/topics/state_object/
I don’t see anything that I can use to detect this as both last_updated and last_changed only appear to get set when there are actual state or attribute changes.
Is there anything else I can use to get this information?
No, that’s not possible to read from the state machine.
Components that read info from sensors should be updated to report their info to the state machine as force_update=True, that way the last_updated will be at least updated.
Thanks for the help, that sounds like exactly what I’m looking for.
Sorry if this is a really basic question, but I’m not sure how to enable it. I tried adding force_update to my configuration.yaml but that didn’t seem to do the trick. I tried setting it in both homeassistant: customize: sensor_name and zwave: customize: sensor_name with no success.
If it’s helpful, this is a zwave sensor and I’m just using the build in components to interact with it.