flopp999/Tibber-Domoticz

Retrieval of hourly prices for tomorrow

Opened this issue · 4 comments

Hi Flopp999 Thanks for this solution!
I adapted the code to also retrieve the 24 hourly prices for tomorrow and put each in a separate device.
I am not sure if domoticz has a ‘table type’ device to contain all 24 values. That would be kore convenient.
Anyway: using this I can now dynamically select the 6 most expensive hours & halt my Vaillant heat pump during those hours (EVU contact).
You might merge my code if you want and maybe add an extra UI option for retrieving these data (or not)?
Best regards, Simon

Hi, nice work.
Yes, please create a merge request

I am having difficulty connecting to GitHub from my PI server (problems with https connect and personal access token).
I am enclosing the adapted plugin.py file so you can have a look.
plugin.zip

Hi Flopp999 Thanks for this solution! I adapted the code to also retrieve the 24 hourly prices for tomorrow and put each in a separate device. I am not sure if domoticz has a ‘table type’ device to contain all 24 values. That would be kore convenient. Anyway: using this I can now dynamically select the 6 most expensive hours & halt my Vaillant heat pump during those hours (EVU contact). You might merge my code if you want and maybe add an extra UI option for retrieving these data (or not)? Best regards, Simon

You could put the data in a Managed Counter in Domoticz it accepts future dates and has a nice graph. Then you have just 1 device for all the future prices. Short term logging is OK, but long term logging is just all prices of 1 day added together.
You could later on divide that by 24 if that is of interest.