custom-components / nordpool

This component allows you to pull in the energy prices into Home-Assistant.
467 stars 112 forks source link

Integrations broken after v0.15 #423

Closed rinowit closed 1 month ago

rinowit commented 1 month ago

I have had this integration for many years. Now sadly my integrations that depends of the past model of the sensor date is broken.

My question is: Why is the structure changed? This is ofcourse not a security issue that is the reason. It's ok with tha name change from Oslo to NO1. But why the structure? It takes down all the integrations I had that was dependent of the maked prices?

I have been using HA for at least 10 years and more. And some times I have been wondering if I have to change a system to a more robust system that don't give surprises like this.

The Nordpool integration has been a wonderfull add-on.

Thank you:)

dana-se commented 1 month ago

Take a look here https://github.com/custom-components/nordpool/issues/420#issuecomment-2421497326

rinowit commented 1 month ago

Thank you:) I will check it up:)

dana-se commented 1 month ago

I think that the easiest way for you, is to rename both the Name and Entity ID to the old ones that worked. image

README Tip: By default, the integration will create a device with the name nordpool__. It is recommended to rename the device and all its entities to nordpool. If you need to recreate your sensor (for example, to change the additional cost), all automations and dashboards keep working.

rinowit commented 1 month ago

I did, but the version 0.14 didn't download the new data. 0.15 downloads the data, but don't work with the other plug-ins I have.

dana-se commented 1 month ago

This is because 0.15 make a new sensor with new name and Identity ID, that you must rename to the old names. Your plugins are looking for the old Identity ID.

rinowit commented 1 month ago

I have already tried renaming it to the previous configuration, but the other plugin uses the old region names hardcoded. I attempted to modify that plugin, but it can't read the new sensor data.

I’ve been trying to understand how the low price percentage works. If I can stop using the other plugin and solely rely on this one, it might prevent future issues. If I want to use the top 30% of the lowest prices of the day, what value should I set to achieve that?

Thanks for helping:)

dana-se commented 1 month ago

@rinowit If you look at the entities of your new nordpool sensor, has the Identity ID the same name as the hardcoded plugin use?

rinowit commented 1 month ago

No, it has the name sensor.nordpool. Not the strang numeric ending. I use this name everywhere in the integration:)

dana-se commented 1 month ago

But you sad "the other plugin uses the old region names hardcoded" Then you must rename your sensor.nordpool to that hardcoded name.

rinowit commented 1 month ago

I used Oslo and not the new NO1. There are probably other differences to. As I have tryed to change the system files for the other plugin to match NO1

thr0t commented 1 month ago

After several days of trying different solutions I was not able to get it working in my container HASS. Seems like all the HASS updates have not gone smoothly as there are a lot of system logic changes and some settings just started conflicting. So the solution that worked for me was fresh HASS install. It is a pain (the esphome needs additional effort, not related to this topic) but at least it started working.

rinowit commented 1 month ago

Closing case

dana-se commented 1 month ago

Closing case

Did you solve the problem?

rinowit commented 1 month ago

No, i will have to fix it oher ways.

Nordpool as a plugin works. It’s the plugins that is dependent of nordpool that don’t work.

In the mean time I will try to figure out how I can use the nordpool integration to fint the lowest prices of the day. I would like to use the cheapes hours to controll the most power intense devices.

Thanks for helping:)

dana-se commented 1 month ago

Herhaps this: https://www.creatingsmarthome.com/?p=1620

thr0t commented 1 month ago

Maybe this will help you with the cheapest hours: https://github.com/kotope/ha_nordpool_cheapest_hours

rinowit commented 1 month ago

This is what I need. Thank you😃