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:
This looks like it is an error with vs code’s checker. It’s happened before. It should clear the configuration checker in devtools and load up when restarted.
Leave the error in the file editor and go to dev tools. Click on the configuration checker and see if it gives you an error. For me it doesn’t error even though it’s flagged in the editor.
To me it looks like a similar issue shown in the link I posted. Following the suggestion to just ignore the editor, last post in the link. I also posted an issue on github and no one has yet to respond.
I had some time and played around with this a little more. It seems like the plural is the problem - triggers:. Even with multiple triggers it still gives the error. This passes the checker in VS code using the singular - trigger: