flopp999 / Tibber-Domoticz

Script to communicate with Tibber. Help me with a buy-me-a-coffee
https://www.buymeacoffee.com/flopp999
GNU General Public License v3.0
8 stars 4 forks source link

Retrieval of hourly prices for tomorrow #52

Open JongsmaSimon opened 2 years ago

JongsmaSimon commented 2 years ago

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

flopp999 commented 2 years ago

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

JongsmaSimon commented 2 years ago

Hi Flopp999,

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. I hope gmail will allow the Python file to go through.

Best regards, Simon

Op wo 21 sep. 2022 om 14:50 schreef flopp999 @.***>:

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

— Reply to this email directly, view it on GitHub https://github.com/flopp999/Tibber-Domoticz/issues/52#issuecomment-1253665092, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNBW2SLGYQORFVXCXLU7QDV7MABPANCNFSM6AAAAAAQSA5WTM . You are receiving this because you authored the thread.Message ID: @.***>

JongsmaSimon commented 2 years ago

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

SargonofAssyria commented 1 year ago

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.