I am tracking outside, as well as room temperatures and implemented some logic to control HVAC and window covers accordingly. Since HA does not allow for imports in scripts and my HA is running dockerized on a RaspberryPi, I decided to externalize some aspects of my smarthome.
More specifically, cron is triggering the script that tracks outside temperature, calls HA API to compare to room temperatures, shuts covers via Shelly API, sends notification to Discord, etc.
The next step for me would be to store longterm weather information and be able to downsample it. Currently I have Prometheus in place, however for downsampling Id have to go with a real Timeseries Database more than a monitoring tool, like Influxdb.
So at the moment I am trying to figure out how to write outside temperatures into the same measurement (?) as room temperatures. Reason being, is that I want to see both in the same graph in Grafana.
Does anyone know how HA is writing to influx? Via Telegraf? Is it even writing, or is Influx pulling? IoT class says local push, which seems a bit odd tbh.
Also, if I had a script that writes to Influx, wouldnt it be off sync with the sensor data from HA? Is that a problem, or can I have them sychronized somehow?
Thank you for any help!