If you use an Inject node (I think that may be what @krambriw meant) set to Repeat at Interval Between Times and set it to 30 minutes then it will inject on the hour/half hour, as explained in the Info tab for the node.
Hi Brian. Octopus?
If you want to trigger the flow every 30 minutes, it may be better to avoid hardcoding the update time, because everyone using your node would be making the api request at exactly the same time, which could cause problems upstream.
If you don't want to use an inject node, you could always look at something like this node, which calls an api every 15 minutes as a template.
Yes. The problem being you'll want the current price as soon as it becomes current. It is probably possible to get more clever and return it on the basis of the times in the data previously found and only call the API when looking for the next set of data.
I'll look at that but for now, I just need a reliable way of pulling the data and the Home Assistant RESTful Integration and a template isn't reliable I'm finding.
Thanks - re-reading that it made sense now. What would it do with an interval of say 13 minutes? Would it do multiples of 13 per hour then reset to 13 minutes past each hour? What if you wanted to pull once per hour at 20 minutes past? I'm guessing it can't
Always happy to share (as well as my referral code ).
Have you looked at emonCMS - Part of the OpenEnergyMonitor project (forum). They have a 'DemandShaper` module within that plus a module that will compare energy use measured against what it would have cost under Agile. Also, there have been some discussions on the Home Assistant forum on extracting the Octopus data. The final resource I'll offer is this website.
Next task is to calculate and return the lowest n hour period in the next 24 (or at the limit of the data available - the next 23:00 - 23:00 period is released around 16:00). I've sort of got it working.
Yes, I know, create the key, and design a bit of flow to fetch it every half hour and extract any data I haven't got already so I can add it to the db. But if @borpin is building a node that will do that for me then hopefully I can use that.
Great, that is working for me. If I had some time I would look at helping with the usage stuff, but concentrating on trying to sort out elderly parents and making sure they can get food delivered at the moment so little time for recreation
Are you in the process of switching?