marq24 / ha-tibber-pulse-local

Local/LAN Tibber Pulse IR/Bridge Integration for Home Assistant. My Tibber invitation Link: https://invite.tibber.com/6o0kqvzf (Code: six, oscar, zero, kilo, quebec, victor, zulu, foxtrot)
Apache License 2.0
94 stars 4 forks source link

Sensor for consumption at the moment #7

Closed mariomonte closed 11 months ago

mariomonte commented 11 months ago

Hi, thank you for your plugin.

I thought I could also read the current consumption but all i get is the sum for in and out. Why I can't see the current consumption?

marq24 commented 11 months ago

The Sensor with the id '0100100700ff' - Power (actual) (or 'Wirkleistung aktuell' in German) should show you this info - BUT this depends from the supported data the electricity meter actually provided and from the mode your tibber bridge is running...

mariomonte commented 11 months ago

Thank you for your response.

I have only these sensors: sensor.ltibber_0100010800ff sensor.ltibber_0100020800ff sensor.ltibber_0100010800ff_in_k sensor.ltibber_0100020800ff_in_k

Is the mode given by tibber or the electricity meter or could I configure this mode within the bridge webserver?

marq24 commented 11 months ago

Crazy shit! What should I say?

This integration works as follows... 1'st it try to get the "mode" of the tibber - currenly only implemented mode is '3' - AND if the mode could not be read (is one of MODE_0_AutoScanMode, MODE_1_IEC_62056_21, MODE_2_Logarex, MODE_3_SML_1_04, MODE_10_ImpressionsAmbient, MODE_11_ImpressionsIR), then it also tries to read "plain-text"...

IF one of this (two) modes is providing data that could be parsed to "OBIS-Codes", then the integration woll read all OBIS-codes that are available (parseable by the current version) and then this list of codes will be matched with the "sensor-list"...

And in your case there only match two codes (0100010800ff & 0100020800ff)...

I am not an expert here - but I could imagine that there are so many reasons/options what cause this situation - could be the electricity meter, could be a setting in the tibber pulse...

Can you share the output of your http://[YOUR-IP]/nodes/1/data ?

mariomonte commented 11 months ago

Could I sent you the output to your email address? help@su??ort.e?acb?rry.c?m

The content is encrypted and I don't know if the registration number of my electricity meter is included. So I don't want to post the output to the forum...

marq24 commented 11 months ago

yes - you can use that - and include a screen shot as well - TIA...

but if it's SML encoded... then I guess the decoder will only return these two values...

mariomonte commented 11 months ago

I also think so. The content seems to be too small for more information. Email is sent out.

marq24 commented 11 months ago

the data looks indeed extremly "short" - so I guess the tibber realy just reads the Zählerstand IN and OUT... that's it :-/

So I am sorry Mario - I guess the root cause is, that the Tibber just reads this data from the Stromzähler...

mariomonte commented 11 months ago

I tried the liveMeasurement supported by the developer-cloud-api. Tibber responses also only:

{ "liveMeasurement": { ... "minPower": 0, "averagePower": 0, "maxPower": 0 } }

So this information seems not to be available for my Stromzähler or for the configured "mode".

mariomonte commented 11 months ago

Closed for now - if we don't know how to change the mode... ... and thank you for your efforts.

mariomonte commented 11 months ago

I found the reason for the missing values. It's not enough to disable the pin at the Stromzähler. It's also necessary to switch the INFO-Submenu to "on".

Now I'm receiving also: sensor.ltibber_0100100700ff sensor.ltibber_0100240700ff sensor.ltibber_0100380700ff sensor.ltibber_01004c0700ff

marq24 commented 11 months ago

could you please share what you did in order to "turn the INFO-Submenu on"?

mariomonte commented 11 months ago

I assumed that after entering the pin and disabling it on the electricity meter, everything was correctly configured. I also noticed the current consumption displayed on the meter's screen.

However, I then searched for the device's documentation and found it online: https://www.stadtwerke-haltern.de/fileadmin/user_upload/stadtwerke/Netz/Dokumente/Kurzanleitung_eBZ_STW_Haltern.pdf

It's a brief manual for my electricity meter (eBZ DD3).

What was important was the INFO flag at position 9 (represented by 9 light pulses). This flag needed to be set to ON. The display of the electricity meter remained the same, showing identical information as before. However, using your plugin, I noticed that my total values now included numbers after the decimal point. Previously, only 1 KWh was displayed. After reinstalling your plugin, I received additional data.

So, consulting the documentation proved helpful!

marq24 commented 11 months ago

CrazyShit! - Thanks for sharing - I would not expect something like that - So it's really the fact, that you can/must adjust your electricity meter in order to get "more" data... So looks like I was extremely lucky with my local setup as it was when I started with all this - if my electricity meter would just have provided two values I would not had thought, that there might be more!

Even if it's not that important - IMHO just restarting the integration or HA completely should have brought you the additional entities - but that's not so important...