Hi,
Not sure where the best place to put it, not even sure if anyone even needs it, but let it be.
Short: I created a script which finds the lowest current day electricity price from epexspot.com, compare it with the current hour and update variables if current hour has the lowest/highest price.
Why: For hourly contracts to find out cheapest hour and run electric devices, similar to Heating Controller app, but much simpler, not app and relevant me (NL, ANWB Energie).
Long: I (well, not myself but with help of ChatGPT) wrote a script, which parse hourly prices json from EPEX SPOT (a major European power exchange platform that facilitates the trading of short-term electricity contracts)
which used in NL for example by ANWB Energie (NL).
Script is looking for lowest and highest prices of the day and update 4 variables (they’re needed to be created in advance), two of them yes/no variables to indicate if price is highest/lowest for current hour, the other two contains exact price values for highest and lowest number for current day. Script returns in console summary details on what it did, parsed etc and it runs for every hour with a flow. It has some error handling, some tricks I had to apply in order to teach chatGPT how to make it correct, e.g. finding relevant current time with Homey and use variables etc.
Script inside is well commented, it easy to read and I believe ChatGPT can eat it back for changes.
I’m attaching couple of images with outputs, flows, nothing special. I don’t think that anyone is really need something like that, but if you have some questions, let me know.
the script itself https://filetransfer.io/data-package/sLpZ8WgE#link