Page 1 of 1

Nordpool electricity prices plugin

Posted: Monday 29 January 2024 18:41
by tjabas
So I have been using a nordpool plugin which I found here, it has been working great but now when I have upgraded to bullseye then it doesn't work anymore, is there any other plugin I can use to get the electricity tariffs into domoticz?
I'm from Sweden.

Thanks

Re: Nordpool electricity prices plugin

Posted: Monday 29 January 2024 19:25
by waltervl
Did you notify the plugin ownrf ur issue?
Did you also upgrade th python modules the plugin perhaps needed?
Do you have a link to. GitHub repository?

Re: Nordpool electricity prices plugin

Posted: Monday 29 January 2024 19:35
by tjabas
waltervl wrote: ā†‘Monday 29 January 2024 19:25 Did you notify the plugin ownrf ur issue?
Did you also upgrade th python modules the plugin perhaps needed?
Do you have a link to. GitHub repository?
Yes I have talked to the writer of the plugin and he didn't have any plans of fixing this issue, the issue it that the plugin doesn't work with the upgraded phyton, I will look for a link to github.

Re: Nordpool electricity prices plugin

Posted: Monday 29 January 2024 19:39
by tjabas

Re: Nordpool electricity prices plugin

Posted: Tuesday 30 January 2024 0:11
by waltervl
I suppose the modules install goes wrong? This is because of the new python virtual environments in Bookworm.
Did you try adding

Code: Select all

--break-system-packages

to the install command?

So use

Code: Select all

sudo pip install -r requirements.txt --break-system-packages
Edit. You upgraded to Bullseye. Did you reinstall the plugin requirements? As they could be changed due to the upgrade of your OS.

Re: Nordpool electricity prices plugin

Posted: Wednesday 31 January 2024 12:30
by VintageLogicJason
tjabas wrote: ā†‘Monday 29 January 2024 18:41 So I have been using a nordpool plugin which I found here, it has been working great but now when I have upgraded to bullseye then it doesn't work anymore, is there any other plugin I can use to get the electricity tariffs into domoticz?
I'm from Sweden.

Thanks
Certainly! It seems like the Nordpool plugin might not be compatible with the Bullseye upgrade. You can try using the "domoticz-emoncms-plugin" for fetching electricity tariffs in Sweden. Make sure to update your plugin list and configuration settings accordingly.

Re: Nordpool electricity prices plugin

Posted: Wednesday 16 October 2024 23:46
by tjabas
i have encountered a problem a couple of days ago with this plugin , it doesnt update anymore, any idea? :

2024-10-16 23:43:54.067 Error: NordPool: return complexjson.loads(self.text, **kwargs)
2024-10-16 23:43:54.068 Error: NordPool: File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
2024-10-16 23:43:54.068 Error: NordPool: return _default_decoder.decode(s)
2024-10-16 23:43:54.068 Error: NordPool: File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
2024-10-16 23:43:54.068 Error: NordPool: obj, end = self.raw_decode(s)
2024-10-16 23:43:54.068 Error: NordPool: File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
2024-10-16 23:43:54.068 Error: NordPool: return self.scan_once(s, idx=_w(s, idx).end())
2024-10-16 23:43:54.068 Error: NordPool: simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-10-16 23:44:04.158 Error: NordPool: Call to function 'onHeartbeat' failed, exception details:
2024-10-16 23:44:04.160 Error: NordPool: Traceback (most recent call last):
2024-10-16 23:44:04.160 Error: NordPool: File "/home/pi/domoticz/plugins/NordPoolSpotPrice-Domoticz/plugin.py", line 287, in onHeartbeat
2024-10-16 23:44:04.160 Error: NordPool: _plugin.onHeartbeat()
2024-10-16 23:44:04.160 Error: NordPool: File "/home/pi/domoticz/plugins/NordPoolSpotPrice-Domoticz/plugin.py", line 142, in onHeartbeat
2024-10-16 23:44:04.160 Error: NordPool: CurrentPrice(HourNow)
2024-10-16 23:44:04.160 Error: NordPool: File "/home/pi/domoticz/plugins/NordPoolSpotPrice-Domoticz/plugin.py", line 185, in CurrentPrice
2024-10-16 23:44:04.160 Error: NordPool: price=prices_spot.hourly(end_date=datetime.now().date(),areas=[_plugin.Area])
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/local/lib/python3.7/dist-packages/nordpool/elspot.py", line 132, in hourly
2024-10-16 23:44:04.160 Error: NordPool: return self.fetch(self.HOURLY, end_date, areas)
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/local/lib/python3.7/dist-packages/nordpool/elspot.py", line 128, in fetch
2024-10-16 23:44:04.160 Error: NordPool: return self._parse_json(self._fetch_json(data_type, end_date), areas)
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/local/lib/python3.7/dist-packages/nordpool/elspot.py", line 104, in _fetch_json
2024-10-16 23:44:04.160 Error: NordPool: return r.json()
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json
2024-10-16 23:44:04.160 Error: NordPool: return complexjson.loads(self.text, **kwargs)
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
2024-10-16 23:44:04.160 Error: NordPool: return _default_decoder.decode(s)
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
2024-10-16 23:44:04.160 Error: NordPool: obj, end = self.raw_decode(s)
2024-10-16 23:44:04.160 Error: NordPool: File "/usr/

Re: Nordpool electricity prices plugin

Posted: Thursday 17 October 2024 7:22
by waltervl
If you are Dutch you also could switch to the Enever hardware gateway, https://www.domoticz.com/wiki/Enever

Else you have to find the issue. It could be anything from noordpool stopping or switch API or python update issue etc

Re: Nordpool electricity prices plugin

Posted: Thursday 17 October 2024 14:36
by tjabas
i also tried with an older backup version of domoticz but the problem where there to, so i guess that there has been a change at nordpool, is there any other plugin that works with nordpool?
i live in sweden.

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 10:55
by JBN
@tjabas, I am curious. What are you using the plugin for? And do you use all the counters it creates?

I was playing around with https://www.elprisetjustnu.se/ yesterday since they have the data available online too.

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 12:20
by tjabas
Im using it to turn on and off some Electrical components when the price is low, the water heater, charging my car, turn on and off heatpumps.
So its kind of hard that the plugin doesnt work.

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 12:21
by tjabas
Is it possible to get the plugin the fetch the prices from. The link you provided?

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 17:43
by JBN
I have not tested this thoroughly but if you want you can try: https://github.com/j-b-n/sweden_energyprice

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 19:37
by tjabas
JBN wrote: ā†‘Sunday 20 October 2024 17:43 I have not tested this thoroughly but if you want you can try: https://github.com/j-b-n/sweden_energyprice
wow thanks alot, i have installed it but i dont get any prices in the switches that the plugin has made, i get these errors:


2024-10-20 19:34:11.437 Error: Elpriser: Call to function 'onStart' failed, exception details:
2024-10-20 19:34:11.439 Error: Elpriser: Traceback (most recent call last):
2024-10-20 19:34:11.439 Error: Elpriser: File "/home/pi/domoticz/plugins/sweden_energyprice/plugin.py", line 176, in onStart
2024-10-20 19:34:11.439 Error: Elpriser: _plugin.onStart()
2024-10-20 19:34:11.439 Error: Elpriser: File "/home/pi/domoticz/plugins/sweden_energyprice/plugin.py", line 115, in onStart
2024-10-20 19:34:11.439 Error: Elpriser: min_price = elprisetjustnu.get_min_energy_price(self.folder, self.price_zone)
2024-10-20 19:34:11.439 Error: Elpriser: File "/home/pi/domoticz/plugins/sweden_energyprice/elprisetjustnu.py", line 62, in get_min_energy_price
2024-10-20 19:34:11.439 Error: Elpriser: prices = update_energy_price(folder, price_zone)
2024-10-20 19:34:11.439 Error: Elpriser: File "/home/pi/domoticz/plugins/sweden_energyprice/elprisetjustnu.py", line 49, in update_energy_price
2024-10-20 19:34:11.439 Error: Elpriser: clean_folder(folder, price_zone)
2024-10-20 19:34:11.439 Error: Elpriser: File "/home/pi/domoticz/plugins/sweden_energyprice/elprisetjustnu.py", line 34, in clean_folder
2024-10-20 19:34:11.439 Error: Elpriser: for f in os.listdir(foldername):
2024-10-20 19:34:11.439 Error: Elpriser: FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/domoticz/plugins/sweden_energyprice/json/'

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 19:40
by tjabas
when i try to install: sudo python3 -m pip install -r requirements.txt --upgrade
i get error message:
Could not open requirements file: [Errno 2] Filen eller katalogen finns inte: 'requirements.txt'

Re: Nordpool electricity prices plugin

Posted: Sunday 20 October 2024 20:28
by JBN
Let's debug together, I have sent you a PM.

Re: Nordpool electricity prices plugin

Posted: Tuesday 26 November 2024 11:11
by sumitrathore
It looks like NordPool changed its API. You can try using the 'domoticz-emoncms-plugin' or find another plugin that works with the new data.

Re: Nordpool electricity prices plugin

Posted: Thursday 28 November 2024 8:06
by sumitrathore
Hello everyone,
Has anyone found a reliable plugin or method to integrate with the new NordPool API? Iā€™m specifically looking for something that can work seamlessly with Domoticz or a similar home automation platform.

Regards,
Sumit.