ebaauw/homebridge-p1

Belgian smart meter telegram causes crash of plugin

thomas-svrts opened this issue · 20 comments

Below the debug info for a Belgian DSMR meter.
For some reason the plugin crashes on the received telegrams.

[20/3/2021 21:46:26] [P1] telegram:
FLU5\253770234_A

0-0:96.1.4(50215)
0-0:96.1.1(3153414731313030303736363136)
0-0:1.0.0(210320214636W)
1-0:1.8.1(001311.025*kWh)
1-0:1.8.2(001651.825*kWh)
1-0:2.8.1(001885.818*kWh)
1-0:2.8.2(000750.923*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.433*kW)
1-0:2.7.0(00.000*kW)
1-0:21.7.0(00.438*kW)
1-0:22.7.0(00.000*kW)
1-0:32.7.0(240.9*V)
1-0:31.7.0(002.22*A)
0-0:96.3.10(1)
0-0:17.0.0(999.9*kW)
1-0:31.4.0(999*A)
0-0:96.13.0()
0-1:24.1.0(003)
0-1:96.1.1(37464C4F32313139303331393634)
0-1:24.4.0(1)
0-1:24.2.3(210320214626W)(02559.077*m3)
!85AF

[20/3/2021 21:46:26] [P1] warning: 0-0:96.1.4: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 0-0:96.3.10: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 0-0:17.0.0: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 1-0:31.4.0: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 0-1:96.1.1: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 0-1:24.4.0: ignoring unknown key
[20/3/2021 21:46:26] [P1] warning: 0-1:24.2.3: ignoring unknown key
[20/3/2021 21:46:26] [P1] raw data: {"type":"FLU5\\253770234_A","checksum":"85AF","id":"1SAG1100076616","lastupdated":"2021-03-20T21:46:36","consumption_low":1311.025,"consumption_normal":1651.825,"consumption_back_low":1885.818,"consumption_back_normal":750.923,"tariff":"normal","power":433,"power_back":0,"l1_power":438,"l1_power_back":0,"l1_voltage":240.9,"l1_current":2.22,"msg_text":"","d1_type":"gas"}
[20/3/2021 21:46:26] [P1] warning: TypeError: Cannot read property 'trim' of undefined
    at P1Client.parseTelegram (/usr/lib/node_modules/homebridge-p1/lib/P1Client.js:527:25)
    at ReadLineParser.<anonymous> (/usr/lib/node_modules/homebridge-p1/lib/P1Client.js:291:49)
    at ReadLineParser.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:280:11)
    at ReadLineParser.Readable.push (internal/streams/readable.js:223:10)
    at ReadLineParser.Transform.push (internal/streams/transform.js:166:32)
    at ReadLineParser._transform (/usr/lib/node_modules/homebridge-p1/node_modules/@serialport/parser-delimiter/lib/index.js:35:12)
    at ReadLineParser.Transform._read (internal/streams/transform.js:205:10)
    at ReadLineParser.Transform._write (internal/streams/transform.js:193:12)

As far as I can see this is related to the gas meter.

I also found following quote of the Flemish grid operator:

Let wel: In Nederland meet de meter 'temperatuur gecorrigeerde volume' die wordt ondergebracht in OBIS-code 0-1:24.2.1. In Belgie meet de meter bij wet 'niet-temperatuur gecorrigeerd volume' die wordt ondergebracht in OBIS-code 0-1:24.2.3. Dus voor gas verschijnt op de gebruikerspoort 0-1:24.2.3 als gaswaarde. Hierdoor moet een dergelijke applicatie wel worden aangepast aan de Vlaamse meter.

For a reference the full list of used codes in Belgium.

OBIS CODE BETEKENIS
0-0:96.1.4 ID
0-0:96.1.1 Serienummer van de elektriciteitsmeter (in ASCII hex)
0-0:1.0.0 Timestamp van de telegram
1-0:1.8.1 Tarief 1 (dag) – totaal verbruik
1-0:1.8.2 Tarief 2 (nacht) – totaal verbruik
1-0:2.8.1 Tarief 1 (dag) – totale injectie
1-0:2.8.2 Tarief 2 (nacht) – totale injectie
0-0:96.14.0 Huidig tarief (1=dag,2=nacht)
1-0:1.7.0 Huidig verbuik op alle fases
1-0:2.7.0 Huidige injectie op alle fases
1-0:21.7.0 L1 huidig verbruik
1-0:41.7.0 L2 huidig verbruik
1-0:61.7.0 L3 huidig verbruik
1-0:22.7.0 L1 huidige injectie
1-0:42.7.0 L2 huidige injectie
1-0:62.7.0 L3 huidige injectie
1-0:32.7.0 L1 spanning
1-0:52.7.0 L2spanning
1-0:72.7.0 L3spanning
1-0:31.7.0 L1 stroom
1-0:51.7.0 L2 stroom
1-0:71.7.0 L3 stroom
0-0:96.3.10 Positie schakelaar elektriciteit
0-0:17.0.0 Max. toegelaten vermogen/fase
1-0:31.4.0 Max. toegelaten stroom/fase
0-0:96.13.0 Bericht
0-1:24.1.0 Andere toestellen op bus
0-1:96.1.1 Serienummer van de aardgasmeter (in ASCII hex)
0-1:24.4.0 Positie schakelaar aardgas
0-1:24.2.3 Data van de aardgasmeter (timestamp) (waarde)

Also another interesting fact is that the Flemish meter uses register 2 for low (offpeak) usage. In the Netherlands they use register 1.

Next time, please quote the output; the * are interpreted by markdown.

Cool, I didn't know they used (more or less) the same scheme in Belgium (Flandres?). Does Homebridge P1 connect with the default settings, or did you have to set dsmr22? How often does your meter send a telegram?

I think Homebridge P1 expects the serial number of the gas meter on 0-1:96:1.0 instead of on 0-1:96:1.1. The Belgium protocol looks similar enough to the Dutch protocol to support it in Homebridge P1. Not sure how to expose the switch positions or the max allowed power and current. The DSMR version (1-3:0.2.8) doesn't seem to be present in the telegram, maybe I can use that to identify a Belgium telegram? Not happy about the reversed high/low tariff; need to figure out how best to deal with that.

Hi thanks for the quick reply.
I thought we used DSMR5 in Belgium, and it connected immediate with the default (empty) config.
Each second a telegram is received.

The max power/current is currently not used that often in Flanders. Today only used in prepaid meters which always gives you 6A when your prepaid card is empty. If you reload your prepaid card it will change back to 999A. It’s a fixed read only value that shouldn’t be exposed to homebridge in my opinion (for now).
Same for switch position: grid operator uses that to disconnect you from the net. Then you even don't have power to power your raspberry.

About low/high tariff: maybe you can just call it tariff 1 and 2?

Could you try beta v1.2.1-0?

Seems all okay now.
Love it already!

[21/3/2021 12:25:20] [P1] telegram:
FLU5\253770234_A

0-0:96.1.4(50215)
0-0:96.1.1(3153414731313030303736363136)
0-0:1.0.0(210321122530W)
1-0:1.8.1(001311.025*kWh)
1-0:1.8.2(001655.211*kWh)
1-0:2.8.1(001885.818*kWh)
1-0:2.8.2(000751.167*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.000*kW)
1-0:2.7.0(00.207*kW)
1-0:21.7.0(00.000*kW)
1-0:22.7.0(00.207*kW)
1-0:32.7.0(238.8*V)
1-0:31.7.0(001.53*A)
0-0:96.3.10(1)
0-0:17.0.0(999.9*kW)
1-0:31.4.0(999*A)
0-0:96.13.0()
0-1:24.1.0(003)
0-1:96.1.1(37464C4F32313139303331393634)
0-1:24.4.0(1)
0-1:24.2.3(210321122502W)(02563.458*m3)
!758E

[21/3/2021 12:25:20] [P1] raw data: {"type":"FLU5\\253770234_A","checksum":"758E","id_be":50215,"id":"1SAG1100076616","lastupdated":"2021-03-21T12:25:30","consumption_t1":1311.025,"consumption_t2":1655.211,"consumption_back_t1":1885.818,"consumption_back_t2":751.167,"tariff":2,"power":0,"power_back":207,"l1_power":0,"l1_power_back":207,"l1_voltage":238.8,"l1_current":1.53,"switch":1,"max_power":999900,"max_current":999,"msg_text":"","d1_type":"gas","d1_id":"7F2119031964","d1_switch":1,"d1_lastupdated":"2021-03-21T12:25:02","d1_consumption":2563.458}
[21/3/2021 12:25:20] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-21T12:25:30","tariff":"low","consumption":{"low":1655.211,"normal":1311.025},"power":0,"failures":{},"l1":{"voltage":238.8,"current":1.53,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-21T12:25:30","tariff":"low","consumption":{"low":751.167,"normal":1885.818},"power":207,"l1":{"power":207}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-21T12:25:02","consumption":2563.458}}
[21/3/2021 12:25:20] [P1] FLU5\253770234_A vB
[21/3/2021 12:25:20] [P1] Electricity: create Electricity 1SAG1100076616
[21/3/2021 12:25:20] [P1] Electricity: set Name to "Electricity"
[21/3/2021 12:25:20] [P1] Electricity: set Serial Number to "1SAG1100076616"
[21/3/2021 12:25:20] [P1] Electricity: set Manufacturer to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Electricity: set Model to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Electricity: set Name to "Electricity"
[21/3/2021 12:25:20] [P1] Electricity: set Log Level to 2
[21/3/2021 12:25:20] [P1] Electricity: set Total Consumption to 2966.236 kWh
[21/3/2021 12:25:20] [P1] Electricity: set Total Consumption Normal to 1311.025 kWh
[21/3/2021 12:25:20] [P1] Electricity: set Total Consumption Low to 1655.211 kWh
[21/3/2021 12:25:20] [P1] Electricity: set Tariff to "low"
[21/3/2021 12:25:20] [P1] Electricity: set Current Consumption to 0 W
[21/3/2021 12:25:20] [P1] Electricity: set Electric Current to 1.53 A
[21/3/2021 12:25:20] [P1] Electricity: set Voltage to 238.8 V
[21/3/2021 12:25:20] [P1] Electricity: set Last Updated to "Sun Mar 21 2021 12:25:30"
[21/3/2021 12:25:20] [P1] Electricity History: set history to {"firstEntry":0,"lastEntry":0,"history":["noValue"],"usedMemory":0,"currentEntry":1,"initialTime":0}
[21/3/2021 12:25:20] [P1] Electricity: set Name to "Electricity"
[21/3/2021 12:25:20] [P1] Electricity Delivered: create Electricity 1SAG1100076616B
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Name to "Electricity Delivered"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Serial Number to "1SAG1100076616B"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Manufacturer to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Model to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Name to "Electricity Delivered"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Log Level to 2
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Total Consumption to 2636.985 kWh
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Total Consumption Normal to 1885.818 kWh
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Total Consumption Low to 751.167 kWh
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Tariff to "low"
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Current Consumption to 207 W
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Last Updated to "Sun Mar 21 2021 12:25:30"
[21/3/2021 12:25:20] [P1] Electricity Delivered History: set history to {"firstEntry":0,"lastEntry":0,"history":["noValue"],"usedMemory":0,"currentEntry":1,"initialTime":0}
[21/3/2021 12:25:20] [P1] Electricity Delivered: set Name to "Electricity Delivered"
[21/3/2021 12:25:20] [P1] Gas: create Gas 7F2119031964
[21/3/2021 12:25:20] [P1] Gas: set Name to "Gas"
[21/3/2021 12:25:20] [P1] Gas: set Serial Number to "7F2119031964"
[21/3/2021 12:25:20] [P1] Gas: set Manufacturer to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Gas: set Model to "homebridge-p1"
[21/3/2021 12:25:20] [P1] Gas: set Name to "Gas"
[21/3/2021 12:25:20] [P1] Gas: set Total Consumption to 2563.458m³
[21/3/2021 12:25:20] [P1] Gas: set Last Updated to "Sun Mar 21 2021 12:25:02"
[21/3/2021 12:25:20] [P1] Gas History: set history to {"firstEntry":0,"lastEntry":0,"history":["noValue"],"usedMemory":0,"currentEntry":1,"initialTime":0}
[21/3/2021 12:25:20] [P1] Gas: set Name to "Gas"
[21/3/2021 12:25:20] [P1] initialised
[21/3/2021 12:25:20] [P1] Electricity History: remove stale characteristic Name
[21/3/2021 12:25:20] [P1] Electricity Delivered History: remove stale characteristic Name
[21/3/2021 12:25:20] [P1] Gas History: remove stale characteristic Name
[21/3/2021 12:25:20] [Symfonisk] Current state for Sonos: stopped
[21/3/2021 12:25:20] [Nest-cam] Front Door has stranger_detection
[21/3/2021 12:25:20] [Nest-cam] Creating motion sensor for Front Door Person.
[21/3/2021 12:25:21] [P1] Electricity: set Electric Current from 1.53 A to 1.52 A
[21/3/2021 12:25:21] [P1] Electricity: set Voltage from 238.8 V to 238.5 V
[21/3/2021 12:25:21] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 12:25:30" to "Sun Mar 21 2021 12:25:31"
[21/3/2021 12:25:21] [P1] Electricity Delivered: set Current Consumption from 207 W to 206 W
[21/3/2021 12:25:21] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 12:25:30" to "Sun Mar 21 2021 12:25:31" 

Solar panels are delivering a little bit now:
0B09A009-4E01-45DA-82F7-B527716FF791

Maybe for your documentation…
Our grid operator is called Fluvius:

and our smart meter looks like this:
6533EEA1-7D0C-414A-B31C-EC6DC8074777

Maybe 1 remark related to the solar panels.
Today is very cloudy so I switch often from Electricty delivered to normal and back.

But the current consumption of 0W is not always updated.

see movie:
My current consumption is stuck at 176W, which should be 0, because I’m delivering. (Only pay attention to the consumption of the ‘Electricity’ and ‘Electricity Delivered’ meters. The other devices in the eve app are old meters)
https://user-images.githubusercontent.com/81048302/111905085-3ff27780-8a4a-11eb-9718-ec2c12ede596.MP4

In the logs you dont see the update to 0W.


[21/3/2021 13:31:20] [P1] Electricity: set Electric Current from 1.24 A to 1.23 A
[21/3/2021 13:31:20] [P1] Electricity: set Voltage from 239.8 V to 239.7 V
[21/3/2021 13:31:20] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:29" to "Sun Mar 21 2021 13:31:30"
[21/3/2021 13:31:20] [P1] Electricity Delivered: set Current Consumption from 144 W to 145 W
[21/3/2021 13:31:20] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:29" to "Sun Mar 21 2021 13:31:30"
[21/3/2021 13:31:21] [Homebridge UI] Homebridge log truncated by admin.
[21/3/2021 13:31:21] [P1] Electricity: set Voltage from 239.7 V to 239.5 V
[21/3/2021 13:31:21] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:30" to "Sun Mar 21 2021 13:31:31"
[21/3/2021 13:31:21] [P1] Electricity Delivered: set Current Consumption from 145 W to 136 W
[21/3/2021 13:31:21] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:30" to "Sun Mar 21 2021 13:31:31"
[21/3/2021 13:31:22] [P1] Electricity: set Electric Current from 1.23 A to 1.25 A
[21/3/2021 13:31:22] [P1] Electricity: set Voltage from 239.5 V to 239.6 V
[21/3/2021 13:31:22] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:31" to "Sun Mar 21 2021 13:31:32"
[21/3/2021 13:31:22] [P1] Electricity Delivered: set Current Consumption from 136 W to 135 W
[21/3/2021 13:31:22] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:31" to "Sun Mar 21 2021 13:31:32"
[21/3/2021 13:31:22] [Nest-cam] Checking for alerts on Front Door
[21/3/2021 13:31:23] [P1] Electricity: set Electric Current from 1.25 A to 1.27 A
[21/3/2021 13:31:23] [P1] Electricity: set Voltage from 239.6 V to 239.5 V
[21/3/2021 13:31:23] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:32" to "Sun Mar 21 2021 13:31:33"
[21/3/2021 13:31:23] [P1] Electricity Delivered: set Current Consumption from 135 W to 148 W
[21/3/2021 13:31:23] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:32" to "Sun Mar 21 2021 13:31:33"
[21/3/2021 13:31:24] [P1] Electricity: set Voltage from 239.5 V to 239.6 V
[21/3/2021 13:31:24] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:33" to "Sun Mar 21 2021 13:31:34"
[21/3/2021 13:31:24] [P1] Electricity Delivered: set Current Consumption from 148 W to 151 W
[21/3/2021 13:31:24] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:33" to "Sun Mar 21 2021 13:31:34"
[21/3/2021 13:31:24] [Hue] Phoscon-GW: request 1590: GET /sensors
[21/3/2021 13:31:24] [Hue] Phoscon-GW: request 1590: 200 OK
[21/3/2021 13:31:24] [Hue] Phoscon-GW: request 1591: GET /lights
[21/3/2021 13:31:24] [Hue] Phoscon-GW: request 1591: 200 OK
[21/3/2021 13:31:25] [P1] Electricity: set Electric Current from 1.27 A to 1.26 A
[21/3/2021 13:31:25] [P1] Electricity: set Voltage from 239.6 V to 239.5 V
[21/3/2021 13:31:25] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:34" to "Sun Mar 21 2021 13:31:35"
[21/3/2021 13:31:25] [P1] Electricity Delivered: set Current Consumption from 151 W to 152 W
[21/3/2021 13:31:25] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:34" to "Sun Mar 21 2021 13:31:35"
[21/3/2021 13:31:26] [P1] Electricity: set Electric Current from 1.26 A to 1.28 A
[21/3/2021 13:31:26] [P1] Electricity: set Voltage from 239.5 V to 239.6 V
[21/3/2021 13:31:26] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:35" to "Sun Mar 21 2021 13:31:36"
[21/3/2021 13:31:26] [P1] Electricity Delivered: set Current Consumption from 152 W to 154 W
[21/3/2021 13:31:26] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:35" to "Sun Mar 21 2021 13:31:36"
[21/3/2021 13:31:27] [P1] Electricity: set Voltage from 239.6 V to 239.5 V
[21/3/2021 13:31:27] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:36" to "Sun Mar 21 2021 13:31:37"
[21/3/2021 13:31:27] [P1] Electricity Delivered: set Current Consumption from 154 W to 163 W
[21/3/2021 13:31:27] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:36" to "Sun Mar 21 2021 13:31:37"
[21/3/2021 13:31:27] [Nest-cam] Checking for alerts on Front Door
[21/3/2021 13:31:28] [P1] Electricity: set Electric Current from 1.28 A to 1.32 A
[21/3/2021 13:31:28] [P1] Electricity: set Voltage from 239.5 V to 239.6 V
[21/3/2021 13:31:28] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:37" to "Sun Mar 21 2021 13:31:38"
[21/3/2021 13:31:28] [P1] Electricity Delivered: set Current Consumption from 163 W to 161 W
[21/3/2021 13:31:28] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:37" to "Sun Mar 21 2021 13:31:38"
[21/3/2021 13:31:29] [P1] Electricity: set Voltage from 239.6 V to 239.8 V
[21/3/2021 13:31:29] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:38" to "Sun Mar 21 2021 13:31:39"
[21/3/2021 13:31:29] [P1] Electricity Delivered: set Current Consumption from 161 W to 156 W
[21/3/2021 13:31:29] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:38" to "Sun Mar 21 2021 13:31:39"
[21/3/2021 13:31:29] [Hue] Phoscon-GW: request 1592: GET /sensors
[21/3/2021 13:31:29] [Hue] Phoscon-GW: request 1592: 200 OK
[21/3/2021 13:31:29] [Hue] Phoscon-GW: request 1593: GET /lights
[21/3/2021 13:31:29] [Hue] Phoscon-GW: request 1593: 200 OK
[21/3/2021 13:31:30] [P1] Electricity: set Electric Current from 1.32 A to 1.3 A
[21/3/2021 13:31:30] [P1] Electricity: set Voltage from 239.8 V to 239.6 V
[21/3/2021 13:31:30] [P1] Electricity: set Last Updated from "Sun Mar 21 2021 13:31:39" to "Sun Mar 21 2021 13:31:40"
[21/3/2021 13:31:30] [P1] Electricity Delivered: set Current Consumption from 156 W to 163 W
[21/3/2021 13:31:30] [P1] Electricity Delivered: set Last Updated from "Sun Mar 21 2021 13:31:39" to "Sun Mar 21 2021 13:31:40"

if you update current consumption delivered, you should set the normal current consumption to 0W. Always 1 of both should be 0W.

My current consumption is stuck at 176W, which should be 0, because I’m delivering.

Are you sure it should be 0? I don't have solar panels, and cannot test this myself. I'm not doing anything special between consuming vs delivering power; my best guess would be that your meter still delivers telegrams with power delivered set.

Could you set Log Level to 3 (ludicrous logging) next time this happens to see the (parsed) telegrams?

Okay I’ll check it tomorrow.
Let’s hope it happens again...

The meter is delivering the info correct.
Also your homebridge plugin does the processing correctly, but I guess that a message was lost when sending to homekit.
It could help to update the value to 0 more often, otherwise it will stay all day on x watt.

In below example some message around 08:57:45 are lost.
So my app keeps showing 5W consuming:

[22/3/2021 08:57:43] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:57:55","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.06,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:57:55","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:43] [P1] Electricity: set Current Consumption from 6 W to 0 W
[22/3/2021 08:57:43] [P1] Electricity: set Electric Current from 1.07 A to 1.06 A
[22/3/2021 08:57:43] [P1] Electricity: set Voltage from 238 V to 238.1 V
[22/3/2021 08:57:43] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:54" to "Mon Mar 22 2021 08:57:55"
[22/3/2021 08:57:43] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:54" to "Mon Mar 22 2021 08:57:55"
[22/3/2021 08:57:44] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:57:56","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":3,"failures":{},"l1":{"voltage":237.9,"current":1.05,"power":3}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:57:56","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:44] [P1] Electricity: set Current Consumption from 0 W to 3 W
[22/3/2021 08:57:44] [P1] Electricity: set Electric Current from 1.06 A to 1.05 A
[22/3/2021 08:57:44] [P1] Electricity: set Voltage from 238.1 V to 237.9 V
[22/3/2021 08:57:44] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:55" to "Mon Mar 22 2021 08:57:56"
[22/3/2021 08:57:44] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:55" to "Mon Mar 22 2021 08:57:56"
[22/3/2021 08:57:45] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:57:57","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.9,"current":1.06,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:57:57","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:45] [P1] Electricity: set Current Consumption from 3 W to 0 W
[22/3/2021 08:57:45] [P1] Electricity: set Electric Current from 1.05 A to 1.06 A
[22/3/2021 08:57:45] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:56" to "Mon Mar 22 2021 08:57:57"
[22/3/2021 08:57:45] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:56" to "Mon Mar 22 2021 08:57:57"
[22/3/2021 08:57:46] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:57:58","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.8,"current":1.05,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:57:58","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:46] [P1] Electricity: set Electric Current from 1.06 A to 1.05 A
[22/3/2021 08:57:46] [P1] Electricity: set Voltage from 237.9 V to 237.8 V
[22/3/2021 08:57:46] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:57" to "Mon Mar 22 2021 08:57:58"
[22/3/2021 08:57:46] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:57" to "Mon Mar 22 2021 08:57:58"
[22/3/2021 08:57:47] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:57:59","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.3,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:57:59","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:47] [P1] Electricity: set Electric Current from 1.05 A to 1.07 A
[22/3/2021 08:57:47] [P1] Electricity: set Voltage from 237.8 V to 238.3 V
[22/3/2021 08:57:47] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:58" to "Mon Mar 22 2021 08:57:59"
[22/3/2021 08:57:47] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:58" to "Mon Mar 22 2021 08:57:59"
[22/3/2021 08:57:48] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:00","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.7,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:00","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":2,"l1":{"power":2}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:48] [P1] Electricity: set Voltage from 238.3 V to 237.7 V
[22/3/2021 08:57:48] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:57:59" to "Mon Mar 22 2021 08:58:00"
[22/3/2021 08:57:48] [P1] Electricity Delivered: set Current Consumption from 0 W to 2 W
[22/3/2021 08:57:48] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:57:59" to "Mon Mar 22 2021 08:58:00"
[22/3/2021 08:57:49] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:49] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:49] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:01","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.2,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:01","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":4,"l1":{"power":4}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:49] [P1] Electricity: set Voltage from 237.7 V to 238.2 V
[22/3/2021 08:57:49] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:00" to "Mon Mar 22 2021 08:58:01"
[22/3/2021 08:57:49] [P1] Electricity Delivered: set Current Consumption from 2 W to 4 W
[22/3/2021 08:57:49] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:00" to "Mon Mar 22 2021 08:58:01"
[22/3/2021 08:57:50] [Hue] Phoscon-GW: request 13755: GET /sensors
[22/3/2021 08:57:50] [Hue] Phoscon-GW: request 13755: 200 OK
[22/3/2021 08:57:50] [Hue] Phoscon-GW: request 13756: GET /lights
[22/3/2021 08:57:50] [Hue] Phoscon-GW: request 13756: 200 OK
[22/3/2021 08:57:50] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:02","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:02","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":3,"l1":{"power":3}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:50] [P1] Electricity: set Voltage from 238.2 V to 238 V
[22/3/2021 08:57:50] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:01" to "Mon Mar 22 2021 08:58:02"
[22/3/2021 08:57:50] [P1] Electricity Delivered: set Current Consumption from 4 W to 3 W
[22/3/2021 08:57:50] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:01" to "Mon Mar 22 2021 08:58:02"
[22/3/2021 08:57:51] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:03","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.3,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:03","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:51] [P1] Electricity: set Voltage from 238 V to 238.3 V
[22/3/2021 08:57:51] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:02" to "Mon Mar 22 2021 08:58:03"
[22/3/2021 08:57:51] [P1] Electricity Delivered: set Current Consumption from 3 W to 0 W
[22/3/2021 08:57:51] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:02" to "Mon Mar 22 2021 08:58:03"
[22/3/2021 08:57:52] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:04","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:04","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:52] [P1] Electricity: set Electric Current from 1.07 A to 1.08 A
[22/3/2021 08:57:52] [P1] Electricity: set Voltage from 238.3 V to 238.1 V
[22/3/2021 08:57:52] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:03" to "Mon Mar 22 2021 08:58:04"
[22/3/2021 08:57:52] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:03" to "Mon Mar 22 2021 08:58:04"
[22/3/2021 08:57:53] [Nest-cam] Checking for alerts on Front Door
[22/3/2021 08:57:53] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:05","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:05","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:53] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:04" to "Mon Mar 22 2021 08:58:05"
[22/3/2021 08:57:53] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:04" to "Mon Mar 22 2021 08:58:05"
[22/3/2021 08:57:54] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:06","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:06","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":3,"l1":{"power":3}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:54] [P1] Electricity: set Electric Current from 1.08 A to 1.07 A
[22/3/2021 08:57:54] [P1] Electricity: set Voltage from 238.1 V to 238 V
[22/3/2021 08:57:54] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:05" to "Mon Mar 22 2021 08:58:06"
[22/3/2021 08:57:54] [P1] Electricity Delivered: set Current Consumption from 0 W to 3 W
[22/3/2021 08:57:54] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:05" to "Mon Mar 22 2021 08:58:06"
[22/3/2021 08:57:54] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:54] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:55] [Hue] Phoscon-GW: request 13757: GET /sensors
[22/3/2021 08:57:55] [Hue] Phoscon-GW: request 13757: 200 OK
[22/3/2021 08:57:55] [Hue] Phoscon-GW: request 13758: GET /lights
[22/3/2021 08:57:55] [Hue] Phoscon-GW: request 13758: 200 OK
[22/3/2021 08:57:55] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:07","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:07","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:55] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:06" to "Mon Mar 22 2021 08:58:07"
[22/3/2021 08:57:55] [P1] Electricity Delivered: set Current Consumption from 3 W to 0 W
[22/3/2021 08:57:55] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:06" to "Mon Mar 22 2021 08:58:07"
[22/3/2021 08:57:56] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:08","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.8,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:08","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":3,"l1":{"power":3}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:56] [P1] Electricity: set Voltage from 238 V to 237.8 V
[22/3/2021 08:57:56] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:07" to "Mon Mar 22 2021 08:58:08"
[22/3/2021 08:57:56] [P1] Electricity Delivered: set Current Consumption from 0 W to 3 W
[22/3/2021 08:57:56] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:07" to "Mon Mar 22 2021 08:58:08"
[22/3/2021 08:57:57] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:09","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:09","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:57] [P1] Electricity: set Electric Current from 1.07 A to 1.08 A
[22/3/2021 08:57:57] [P1] Electricity: set Voltage from 237.8 V to 238.1 V
[22/3/2021 08:57:57] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:08" to "Mon Mar 22 2021 08:58:09"
[22/3/2021 08:57:57] [P1] Electricity Delivered: set Current Consumption from 3 W to 0 W
[22/3/2021 08:57:57] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:08" to "Mon Mar 22 2021 08:58:09"
[22/3/2021 08:57:58] [Nest-cam] Checking for alerts on Front Door
[22/3/2021 08:57:58] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:10","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.9,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:10","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:58] [P1] Electricity: set Voltage from 238.1 V to 237.9 V
[22/3/2021 08:57:58] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:09" to "Mon Mar 22 2021 08:58:10"
[22/3/2021 08:57:58] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:09" to "Mon Mar 22 2021 08:58:10"
[22/3/2021 08:57:59] [Hue] Hue Lily XL 1: attr changed event: {"colorcapabilities":0,"ctmax":65279,"ctmin":0,"id":"15","lastannounced":null,"lastseen":"2021-03-22T07:57Z","manufacturername":"Philips","modelid":"1746230P7","name":"Hue Lily XL 1","swversion":"1.65.9_hB3217DF4","type":"Extended color light","uniqueid":"00:17:88:01:06:7c:9c:d3-0b"}
[22/3/2021 08:57:59] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:59] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:57:59] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:11","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.3,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:11","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:57:59] [P1] Electricity: set Voltage from 237.9 V to 238.3 V
[22/3/2021 08:57:59] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:10" to "Mon Mar 22 2021 08:58:11"
[22/3/2021 08:57:59] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:10" to "Mon Mar 22 2021 08:58:11"
[22/3/2021 08:58:00] [Hue] Phoscon-GW: request 13759: GET /sensors
[22/3/2021 08:58:00] [Hue] Phoscon-GW: request 13759: 200 OK
[22/3/2021 08:58:00] [Hue] Phoscon-GW: request 13760: GET /lights
[22/3/2021 08:58:00] [Hue] Phoscon-GW: request 13760: 200 OK
[22/3/2021 08:58:00] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:12","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:12","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:00] [P1] Electricity: set Voltage from 238.3 V to 238 V
[22/3/2021 08:58:00] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:11" to "Mon Mar 22 2021 08:58:12"
[22/3/2021 08:58:00] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:11" to "Mon Mar 22 2021 08:58:12"
[22/3/2021 08:58:01] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:13","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.2,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:13","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:01] [P1] Electricity: set Electric Current from 1.08 A to 1.07 A
[22/3/2021 08:58:01] [P1] Electricity: set Voltage from 238 V to 238.2 V
[22/3/2021 08:58:01] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:12" to "Mon Mar 22 2021 08:58:13"
[22/3/2021 08:58:01] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:12" to "Mon Mar 22 2021 08:58:13"
[22/3/2021 08:58:02] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:14","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:14","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":0,"l1":{"power":0}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:02] [P1] Electricity: set Voltage from 238.2 V to 238.1 V
[22/3/2021 08:58:02] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:13" to "Mon Mar 22 2021 08:58:14"
[22/3/2021 08:58:02] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:13" to "Mon Mar 22 2021 08:58:14"
[22/3/2021 08:58:03] [Nest-cam] Checking for alerts on Front Door
[22/3/2021 08:58:03] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:15","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:15","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":3,"l1":{"power":3}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:03] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:14" to "Mon Mar 22 2021 08:58:15"
[22/3/2021 08:58:03] [P1] Electricity Delivered: set Current Consumption from 0 W to 3 W
[22/3/2021 08:58:03] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:14" to "Mon Mar 22 2021 08:58:15"
[22/3/2021 08:58:04] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:58:04] [Nest-cam] Setting Front Door Person Motion to false
[22/3/2021 08:58:04] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:16","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:16","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":2,"l1":{"power":2}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:04] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:15" to "Mon Mar 22 2021 08:58:16"
[22/3/2021 08:58:04] [P1] Electricity Delivered: set Current Consumption from 3 W to 2 W
[22/3/2021 08:58:04] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:15" to "Mon Mar 22 2021 08:58:16"
[22/3/2021 08:58:05] [Hue] Phoscon-GW: request 13761: GET /sensors
[22/3/2021 08:58:05] [Hue] Phoscon-GW: request 13761: 200 OK
[22/3/2021 08:58:05] [Hue] Phoscon-GW: request 13762: GET /lights
[22/3/2021 08:58:05] [Hue] Phoscon-GW: request 13762: 200 OK
[22/3/2021 08:58:05] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:17","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.1,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:17","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":4,"l1":{"power":4}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:05] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:16" to "Mon Mar 22 2021 08:58:17"
[22/3/2021 08:58:05] [P1] Electricity Delivered: set Current Consumption from 2 W to 4 W
[22/3/2021 08:58:05] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:16" to "Mon Mar 22 2021 08:58:17"
[22/3/2021 08:58:06] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:18","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":237.8,"current":1.07,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:18","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":5,"l1":{"power":5}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:06] [P1] Electricity: set Voltage from 238.1 V to 237.8 V
[22/3/2021 08:58:06] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:17" to "Mon Mar 22 2021 08:58:18"
[22/3/2021 08:58:06] [P1] Electricity Delivered: set Current Consumption from 4 W to 5 W
[22/3/2021 08:58:06] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:17" to "Mon Mar 22 2021 08:58:18"
[22/3/2021 08:58:07] [P1] data: {"type":"FLU5\\253770234_A","version":"B","msg_text":"","electricity":{"id":"1SAG1100076616","lastupdated":"2021-03-22T08:58:19","tariff":"normal","consumption":{"low":1660.048,"normal":1311.576},"power":0,"failures":{},"l1":{"voltage":238.4,"current":1.08,"power":0}},"electricityBack":{"id":"1SAG1100076616B","lastupdated":"2021-03-22T08:58:19","tariff":"normal","consumption":{"low":751.707,"normal":1885.818},"power":3,"l1":{"power":3}},"gas":{"id":"7F2119031964","lastupdated":"2021-03-22T08:55:02","consumption":2570.901}}
[22/3/2021 08:58:07] [P1] Electricity: set Electric Current from 1.07 A to 1.08 A
[22/3/2021 08:58:07] [P1] Electricity: set Voltage from 237.8 V to 238.4 V
[22/3/2021 08:58:07] [P1] Electricity: set Last Updated from "Mon Mar 22 2021 08:58:18" to "Mon Mar 22 2021 08:58:19"
[22/3/2021 08:58:07] [P1] Electricity Delivered: set Current Consumption from 5 W to 3 W
[22/3/2021 08:58:07] [P1] Electricity Delivered: set Last Updated from "Mon Mar 22 2021 08:58:18" to "Mon Mar 22 2021 08:58:19"

I’ve never seen messages between Homebridge and HomeKit “getting lost”. Did you refresh the screen in Eve? Did you try another HomeKit app? I take it, Current Consumption does correctly display the non-zero values?

non-zero values seems to be updated correctly, but it's hard to verify.
When I'm producing or consuming the power values changes that often, so if it misses X messages I don't notice because x seconds later it's updated.

I checked also in the HOME+ app. even weirder is that there I see a different consumption which is also not correct.
(in below example I'm not producing, only consuming electricity. So both consumptions should be 0W)

same app 7 minutes later, values not changed:

I checked also in the HOME+ app. even weirder is that there I see a different consumption

I also see different values for Last Updated, so they don't show data from the same telegram. Note that Last Updated lists the timestamp from electricity network, as listed in the telegram, not the system time. In my case, it's off by 32s.

Checking my meter, by setting Log Level to 2 and running:

tail -f /var/lib/homebridge/homebridge.log | grep 'Electricity: set Current Consumption

It looks like my meter refreshes the power every 10 seconds (the value only changes at 10s intervals). Eve displays all the updates in real-time; Last Updated every second, and Total Consumption, Total Consumption Normal, and Current Consumption every 10 seconds. From what I can tell, there are no "missing messages". Even if the value would be refreshed every second, I would expect any issue: Eve shows the new Last Updated value every second.

"Last updated" is updated each second. Same for power/total consumption/voltage/current, that also changes each second. I see that it changes each second in eve (So yet another difference between Belgium and the Netherlands).

Sometimes it glitches and then I don’t see updates in Eve for some seconds. But in the homebridge logs each second an update was sent.

When I’m consuming electricity each second I get the following updates:
Electricity:

  • Current
  • voltage
  • last update
  • Consumption

Electricity Delivered:

  • last update
    consumption is not updated (because its 0 and doesn't change anymore, so new updates are triggered)

That’s why you only see the last update change in above screenshots

Attached a video demonstrating it (consumption_back fixed on 2019W (Eve) and 452W (Home+), and it stays on those values until sunrise tomorrow).

WhatsApp.Video.2021-03-23.at.18.56.37.mp4

Sometimes it glitches and then I don’t see updates in Eve for some seconds. But in the homebridge logs each second an update was sent.

In that case, the notification from the HAP server to HomeKit went MIA somehow. Indeeed, no new notification will be sent, until the value changes. However, when you refresh the screen (pull down), HomeKit should re-read the value from the HAP server. Same when you force-quit and restart Eve.

Do you see the same behaviour on multiple iDevices, or only on one?

The notifications no HomeKit are handled by HAP-NodeJS; no Homebridge plugin sits in between that traffic. You can run Homebridge with DEBUG=* set in the environment, to make HAP-NodeJS log the communication with HomeKit. It's very, very verbose, but might give a clue why the notification is missing.

In that case, the notification from the HAP server to HomeKit went MIA somehow. Indeeed, no new notification will be sent, until the value changes. However, when you refresh the screen (pull down), HomeKit should re-read the value from the HAP server. Same when you force-quit and restart Eve.

Yeah you're right: pull down did the trick (strange because I thought that I tried that already, bit apparently not)

Do you see the same behaviour on multiple iDevices, or only on one?

I saw it on my iPad and iPhone

The notifications no HomeKit are handled by HAP-NodeJS; no Homebridge plugin sits in between that traffic. You can run Homebridge with DEBUG=* set in the environment, to make HAP-NodeJS log the communication with HomeKit. It's very, very verbose, but might give a clue why the notification is missing.

I'l try that one later. But for me the issue is solved, now that I know I can refresh it in Eve.

For a reference the full list of used codes in Belgium.

@thomas-svrts Do you have a link where you got this info? Cannot seem to find it on fluvius.be?

See last 2 pages of
https://www.fluvius.be/sites/fluvius/files/2019-12/e-mucs_h_ed_1_3.pdf

Annex A1 (Belgium) + A2(Flemish specs)

Thanks, doc provides some new insights.

  • DSMR version is reported;
  • I might expose the breakers as Status Fault. Not sure if that makes too much sense for electricity (assuming that when its disconnected, you no longer have power, which probably means the meter goes down as well), but it might make sense for gas?

but it might make sense for gas?

True, but only going to happen in the case you don’t pay you bills.