Hi all,
please help, I need to use raw (not filtered) temperature value in climate to have quick response and precise regulation and simultaneously push filtered valuse to Home Assistant - I don’t need fill HA database up by useless amount of values.
I’ve got:
Hi
you can exclude the sensors from being stored into the HA database in your configuration.yaml in HA?
Entity is for explicitly named sensors, entity_globs for patterns ( in my example sensors ending with *_db)
No, I don’t want exclude it from storing at all, I just want to lower amount of stored values - every second is not good for HA - it slows down showing history.
Perhaps a solution with two sensors based on the same input? One high frequency excluded from the database for quick response and another with less values within the timeframe for storage?
After restart it created a new entity “sensor.filtered_ultrasonic”
There are more types of filters, this one sends only one value within the window ( here 1 minute) and it is the first value captured within the timeframe. For Ultrasonic distance it does not really make sense, but should work for temperature?
The filtered sensor would go to the database, the original sensor with higher frequency is excluded.
Well, quite complicated. It took me a while that this should be in HA file, not esphome…
(I don’t like to have spread configuration of one “think” in more files…)
BTW, traditional on/off thermostat is oscillating around desired value (0.7°C), so I’m trying PID, autotune is running now. I hope that then the temperature will stay in 0.1°C, so no database recording would be done.
Will report final solution…