I’m fairly experienced with Node Red but am a total noob with InfluxDB. Here’s what I’m trying to do:
I have an automation that tracks when we run our clothes washer. I’m using a blueprint from Blacky for this. It’s pretty cool :).
Anyways, when this automation updates the cycle count for the washer, I want to store the updated cycle count and the time that the cycle finished in influxdb.
I know how to detect the cycle count update. I also have created the database in influxdb. I know I need to use the “influxdb out” node to write to the database.
What I am really confused about is how to include the timestamp. I assume I need to have a function node that grabs info from the payload that comes out of the state change node and formats it for the influxdb out node. But, I’m a bit lost.
I’d love some help I can provide debug info on what comes out of the state change node if that helps.