Does HA ignore repeat sensor values?
-
I'm trying to diagnose some repeater issues. I have a temperature sensor sending data every 10 seconds. Home Assistant will go several minutes before it will show a last updated timestamp for my temperature sensor. I can verify in Netcat that the gateway is getting the values every 10 seconds. By chance, I noticed in the debug output, Home Assistant only fires the
Event state_changedwhen the value actually changes. I guess this makes sense.
Is this normal behavior for HA? Can this be disabled so every sensor message is logged? -
Yes this is normal behavior in HA. But it can be turned off, on a platform basis in HA. I have a PR incoming that will force state updates for mysensors sensors.
-
Yes this is normal behavior in HA. But it can be turned off, on a platform basis in HA. I have a PR incoming that will force state updates for mysensors sensors.
@martinhjelmare I see you PR was merged a while ago. It looks like the
force_updateproperty defaults toTRUE. Is this now the default behavior for all MySensors sensors?Sorry if this seems obvious, I just want to double check.
Thanks for your work and time! -
@martinhjelmare I see you PR was merged a while ago. It looks like the
force_updateproperty defaults toTRUE. Is this now the default behavior for all MySensors sensors?Sorry if this seems obvious, I just want to double check.
Thanks for your work and time!Hi! Yes, pure sensors will default to force updates.
-
@martinhjelmare, sorry to bring up an old topic. I'm on a version of HA that includes your PR (v.: 0.54.0), however, my motion sensors only update their
last_updatedproperty when the motion sensor's state changes. I can see in HA'a log that it is receiving the expected repeated state (1;1;1;0;16;0) every X minutes, but the entity doesn't update thelast_updatedtimestamp unless the motion sensor's state changes. Is there a way I can force thelast_updatedtimestamp for each msg?Some context: I'm attempting to write automation rules to create alerts for sensors that have not checked-in within X minutes.
-
@martinhjelmare, sorry to bring up an old topic. I'm on a version of HA that includes your PR (v.: 0.54.0), however, my motion sensors only update their
last_updatedproperty when the motion sensor's state changes. I can see in HA'a log that it is receiving the expected repeated state (1;1;1;0;16;0) every X minutes, but the entity doesn't update thelast_updatedtimestamp unless the motion sensor's state changes. Is there a way I can force thelast_updatedtimestamp for each msg?Some context: I'm attempting to write automation rules to create alerts for sensors that have not checked-in within X minutes.
I think you can setforce_updatetotrueundercustomizefor the entity in question.It seems it's not possible to customize that property.