Hi, I have the problem that the data of the sensors that I have “included” in configuration.yaml somehow appear wildly sporadically in the Influxdb. I actually only need a value of the sensor at 23:59. As far as I understand, the value is automatically written to the Influxdb when it changes. I have data written into Influxdb ascending throughout the day at various times, but not after about 10 pm. How can I tell Homeassistant to write a sensor to Influxdb at 23:59:00? As i switched from Openhab, this point was extremely easy there. There must be a solution for this here too. This action: “Home Assistant Core Integration: Update entity from gas consumption today” unfortunately does not work either. At least this does not trigger the data to be written to influxdb.
Thankfull for any ideas.
Thanks for the reply.
I really dont understand how to create a trigger base template sensor.
Adding your code to my template.yaml throws errors.
Using the UI i dont really know what to fill in.
Could you please explain it in more detail?
Thnx
Michael
What I posted is intended for configuration.yaml. When the entry is placed in a separate file outside, template.yaml, you do not use the top key template: