Variable Time in "Get history node" home assitant in node red

I want to pass a numeric variable from subflow instance into the "get history node", this is what I did, everything is fine with other attributes, except the timestring. I tried {{payload.time_check}} but no luck, it didn't give any output. If I fill a number directly in this box, it work well.
What should I do, please help me.



I suspect the problem is that time_check is not set correctly in the env. How is it being set ?

1 Like

I passed it as a number, and also use node.warn() to display it.
I converted the env into "time_check" var as shown on the picture above, this function node is right before the get history node

Am i wrong?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.