Hi, I have installed the node red add on and the node-red companion integration and successfully imported a flow I got from a forum that does a web page scrape to get the level of my oil tank from a web site. I can manually trigger the flow and see the sensor value in Home Assistant. But I don’t see any way to actually tell the flow to run every x minutes in order to update the sensor. There is supposed to be a nodered service but I don’t get any option for it in the trigger service developer UI. Do I schedule something every x minutes using the nodered timestamp node, or am I missing some other add on? I am just starting out with nodered but I am a programmer, any help is appreciate.
Yes, you can input time as a trigger to run every few minuets if you wanted to. Since you are scrapping it is harder to do on a change of value. I would recommend using time as the trigger, get the value, then output it. “TIME” is what you are looking for. I have a few things like this where I do things every x minuets.
Thank you I think I have this working, it triggered once, is there any node red log or status I could look at just to see the triggers get logged so I know it’s working OK?
Yes, you can add a “Debug” node to log things.
The debug output is visible on the right side, you might have to expand it to see it thou.
Your inject node can trigger by time with the options in the bottom of the settings page.
Your debug node should be set to output complete message all the time and not just msg.payload.
This hint will help your debugging and understanding og messages a lot. (I really can’t see why this is not the default setting for a debug node)
Thank you all! Think I got it. I have to dig more into Node Red, seems like a great tool.