nordpool icon indicating copy to clipboard operation
nordpool copied to clipboard

Reload buggy if multiple np sensors

Open Hellowlol opened this issue 4 years ago • 8 comments

Version of the custom_component

Configuration


Add your logs here.

Describe the bug

Reload does not work correctly if multiple nordpool sensors is active

Debug log


Add your logs here.

Hellowlol avatar Feb 13 '21 01:02 Hellowlol

Any progress on this bug? I have two sensors, which only differ by their additional costs setting (one set of additional 'costs' for import, one set for export). One of them (always the same one) sometimes reverts to 'Unknown' state. Any idea if this affects calculations within Energy dashboard, if it reverts back to a valid state within the hour?

Also, is it accepted to reproduce the two sensors in their entirety in configuration.yaml, or is there a way that one could only restate the changed variables for the second sensor? Would be more elegant, I suppose (and that would perhaps also be the only benefit).

kalaws avatar Sep 15 '21 14:09 kalaws

I’m dont understand your problem. This issue is related to how a reload of the platform is handled. (Error in the log)

If you have any other issues you should open a new issue using the issue template.

Hellowlol avatar Sep 15 '21 18:09 Hellowlol

Ok, so to stick with the issue, I’m completely new to HA (two days in), so I honestly don’t have a clue.

Here’s what the two sensor histories look like:

7B761B82-A897-46B5-8DAB-BC2886F899B0 58802326-49E6-4207-B4EA-FA06DDBB0D7A

Import sensor has some interruptions, export sensor does not. I haven’t been able to find a relevant log. Where would that be? Sorry for being such a noob - I appreciate the work done!

kalaws avatar Sep 15 '21 18:09 kalaws

Ok, managed to use templates instead. Will see if the interruptions stop.

kalaws avatar Sep 16 '21 08:09 kalaws

Ok, managed to use templates instead. Will see if the interruptions stop.

Did this work? Can you show me how you set it up using template sensor? I need to have two almost identical sensors. One which has pretty advanced additional cost settings. The other sensor should just be a copy of the first, but substract a fixed amount for each kWh.

PalleRaa avatar Mar 11 '22 09:03 PalleRaa

Every time i restart, there is a pause on second sensor. It start working on full hour. 11:00 pm for example.

marparts avatar May 08 '22 19:05 marparts

I have the same issue. Of my three sensors only one is updated after a HA reboot. So I have now created a Node Red flow that restart each sensor with 5sec delay after the HA restart. If I restart all at the same time only one is updated.

and117 avatar Jul 17 '22 07:07 and117

@and117 thats a different issue then this one. Please open a new issue and provide logs

Hellowlol avatar Jul 17 '22 19:07 Hellowlol

Should be ok in 0.0.8

Hellowlol avatar Nov 10 '22 19:11 Hellowlol