rbrink / Home-Assistant-Prijsplafond

Provides Home Assistant sensors to keep track of the Dutch prijsplafond regulation.
11 stars 3 forks source link

Adding integration directly #5

Closed pluim003 closed 1 year ago

pluim003 commented 1 year ago

When I add the integration directly I'm prompted to enter the entities to be used for prijsplafond but the one for gas can't be chosen:

afbeelding

The screenshot doesn't contain more entities to choose from but gas is missing.

This is causing that my gas usage for the months is now set to 0.

rbrink commented 1 year ago

On initial configuration you see 3 entity listings. The first one is for energy consumers, then second for energy producers (solar panels) and the third one is for gas consumers. image

I haven't yet found out why my data descriptors are not working with the entity listings. I've also marked this a bug in my release.

pluim003 commented 1 year ago

Aha, that made sense, so started with the 3rd one and added there the Gas, then started with the first which gave me some extra's then. So I hadn't looked that good. Seems to be working now and I have a value for gas again. Well everything is slightly off due to another restart before re-adding the integration.

Would it be convenient to get the values somehow from the ones used in the energy dashboard? Although I don't know where those values are being stored:

afbeelding

rbrink commented 1 year ago

Sadly there is no way of customization in the energy dashboard.. Yet I hope.. If you are looking for the data. This can be found on Developer Tools > Statistics.

What you mean with slightly off? The integration fetches the provided entities from the history plugin, lets say the first recorded state of this month) and then calculcates the usage untill now. So it should not matter whether you start now or later.

pluim003 commented 1 year ago

There were issues after a restart when there was a dip in the prijsplafond-values. Above here in the screenshot are the real values of usage this month, whereas the prijsplafond-values (see the screenshot in https://github.com/rbrink/Home-Assistant-Prijsplafond/issues/6 gives other values up till today. As it seems we will stay below the caps for this month it won't bother (and otherwise there was nothing to do about it except for turning the heating a few degrees lower, but then the mrs won't like it :-) ). Let's see how February will do.

rbrink commented 1 year ago

I looked closer to your energydistribution thingy and see your values are way different than as shown in #6.. Kind of shocked actually..

My data is like the same..

image

The only diff I have is with the consumed energy, but I found out that is because I calculate with all the decimals and hassio Energy removes some.. So this might be a rounding thingy..

pluim003 commented 1 year ago

That's indeed quite close. I must say I didn't start at Jan 1st but I think in the beginning it was almost the same but after the nightly restarts (for the backup) it got off.

Before the update of Docker arond 7AM on RPi4 it wat at 120 m3 for gas:

afbeelding

pluim003 commented 1 year ago

Last night again a weird drop:

afbeelding

Nothing special going on at 4AM which can cause this. Same for gas.

Should I start a new issue?

rbrink commented 1 year ago

Hmm.. i'll start a new issue for this.

rbrink commented 1 year ago

@pluim003 can you share the historic data from your source sensors somewhat before the drop and afterwards in #7 ?

rbrink commented 1 year ago

Closes in latest release