Hi there,
I have two issues with update interval of sensors in my history for which I can’t find a solution:
- I have a lawnmower integrated in Home Assistant using HACS (Landroid Cloud). This creates a sensor called vacuum.mower with lots of attributes (e.g. “orientation”) and sub-attributes (e.g. “roll”, “pitch”, …).
Since this sensor is huge and I don’t want it to spam my database, I excluded it in Recorder, but I created template sensors for the data that I need, and those are recorded. Example of such a sensor for a sub-attribute can be found below.
Now, the issue is that the data is only recorded every once in a while, and I think it is when the main sensor (vacuum.mower) changes state. But this only happens when it undocks / docks / goes into error / … so it can easily be hours in between. This messes up my data recording and graphs.
How can I make sure that the value of these sensors is recorded at fixed time intervals, even when the main sensor state doesn’t change?
- platform: template
sensors:
mower_rain:
friendly_name: "Rain delay"
value_template: "{{ state_attr('vacuum.mower', 'rain_sensor')['remaining'] }}"
- I have a similar issue with Google Nest Thermostat integration, although there I can’t pinpoint the reason. So this integration in fact: Google Nest - Home Assistant
It creates a sensor for the thermostat, as well as 2 separate sensors for temperature and humidity. I record all of them, and make a graph of temp and humidity, but the temperature value makes jumps every half hour / hour / 2 hours / … Not consistent but in any case too long.
I would understand this if the temperature is stable, but it’s being logged up to a tenth of a degree (now 24,8°C) and sometimes jumps up & down by 1 degree or more, so this seems strange.
I know it’s not graph configuration related, since I see the same in Home Assistant in the History tab, so it’s really the logging itself that’s not smooth.
Anyone that can pinpoint me in the right direction?
Thanks!
Davy