I have a small handful of devices that I have the app installed on (Android); that I get information from (battery levels, Wifi Connection, location, etc) - but the polling does not seem to respect the scan_interval default (usually less than a few minutes for most) - I tend to get states that were last updated hours ago; this isn’t really acceptable to me for a state monitored home automation server; unless its a connectivity issue between the device and HASS.
If Home Assistant is supposed to poll every minute or so, why are some not being seen for hours at a time?
Is there such an automation template that I can run so that any device that has not had a state updated in say, 30 minutes - force one until it gets one; instead of wait on one to eventually come through?
I know that there is a service called:
homeassistant.update_entity
But I am not sure how to run a ‘foreach loop’ using a template:
$entities.state.last_updated[ -gt 1800 ] | foreach { homeassistant.update_entity $_ }
“For all entities where last_updated > 1800 seconds (30 minutes), call the service against each iteration that we find during the loop”