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
114 stars 4 forks source link

Sample data IEC-62056-21 and weird connection issue #28

Closed paule96 closed 4 months ago

paule96 commented 5 months ago

Checklist

Meter type? | check your http://[YOUR-PULSE-IP]/nodes/1/config

IEC-62056-21 (IR)

Output of the Tibber webfrontent data.json | check http://[YOUR-PULSE-IP]/nodes/1/data or http://[YOUR-PULSE-IP]/data.json?node_id=1

/EFR5\5

1-0:F.F0255( 0 000000000 00)
1-0:F.F."."55000000 0000000 
1- :0.0.0.20 1DFB2262008300
1-0:0.02.2540U000017009)
1-0:  .3.255(0000000 
 -0:0.90255(2 :53:52
10:0.9.2.255(2006-24)
1-0:02.0.25401.06
0-0:0.1.2
01240600000000
 -0:002
02(2005010 0 00)
1-0:0.12
 3(240401000000
1-0:012*04(24030 000000)
1-0:002*05240201000000   
1-0:0.12*062 01010000 0   
0-0:00.2
07(231200000000
0-0:002
08(230101000000
1
0:0.1.2
09(2310 1000000)
1-0: .1.2*10(230801000000)
1
0:0.1.2*10230800000000)
1-0: 1.2* 2220701000000)
10:0.1.2*0"22060100000 
0-0:01.2*14(230501000 00
1-0:0.12*05(22 001000000)
 0:01.2
16(220"0100  0 )
1,0:0.1."*16(2" 22100 900)
0-0:180*250(0013346056
kWh)
1-0:180*250001333.2028*kWh)
1-0:08.0
0 0 1303.7200
kWh)
00:0.8.0*02(000243.7782*jWh)
1 :1.8.0*02001 88.1428*kWh
1-0:18.0
04(000 85.0448*kWh)
1- : .8.0*05001094.7202*kWH
10:08.0*060009883482*kVH
0-0:1.80
07(000916.0406*KWH)
1-0:08.0*08(0007952644*kWH
10:1.80*090007068062*kWh)
1-0:1.8.0*10(0005970"30
kWh)
1-0:0.8.0*100005 06754
KVH 
0 :08.0*12000392. 246
kWh
1,0:180*1"000280.1850
JWh)
1
0:1.8.0*100 0264.6084*kWH)
 -0:1.8.0*15(0001402200*kWH
1-0:180*16(000034.8412*kVH)
1-0:1.80*17000000.0000
kWh 
0-0:0.8.1*255(00 6626442
kWh(
1-0:1.81*244(000762.5020*KWH)
1-0:1.8.1*01(000702"588
JVh)
1-0:180*02(000710.5460*kWh)
1-0:181*02(0006&6.2286*kWh)
1-0:1.8. 
04 00606.1232
kWh)
 0:1.8.1
05(000616.090 
KVH)
10:1.80*06(0005530814
kWh)
10:1.80*07(00 0 5.7088*kWh
10:1.8.1*08(0 0441.7540*kWh    
0-0:1.80
09(000399. 616
kWh)
1-0:1.81*10000341.9 30*kWh)
00:08.1*11(000294.26 8*kWh    
1-0:08.1*02(0002208642*kWh    
00:0.8.0
03(0000030794*kWh
1-0:181* 0( 0 1 0.8802*JWH)
00:1.80
15(000089.1118
JWh)
1
0:181*16(000018.700 
JWh)
0-0:1.80
07(000000.0000
kWH 
1-0:08.2*254000570.8704*kWh)
1-0:08.2
244(0005606608*kWH
1,0:1.8.2
01000560.4626*KVH
00:18.2*02(000423.2332
JVH
1-0:18"*02(0000028152
JVh 
10:1.8.2
04(000468.9116*kWh)
1-0: 8.2*00(000478.6262*JVH
1-0:1.8.2*06(000435.1668
JVh)
00:1.8.2
06(000000.3308
kWh)
10:1.8."*08(000242610 
JWh)
1-0:18.2
09(000308."006*kWH
10:1.8.2
10(000255.5300
KWh
1-0:1.8.2*11(0002060146*JWh    
1-0:1.8.2
 2000171.540 *KVh)
1
0:1.8.2*020000267056*kWh)
1-0:0.8.2
00(000013.7252
JWh)
00:1.8.2*10000061.0082
JWh)
1-0:08.2*16(000016 962*kWh)
1-0:1.82
17(000000.0000*kWh)
1- :2.8.0*255(000006.6866*kWh)
1
0:280*254(0 0007.0804*kWh 
10:2.80
01000000 000*JWh)
0-0:2.8.0
020000 00000*kVH
10:2.8.0*02000000.0000
kWh)
0-0:2.8.0
04(0000 0.00 0*kWh)
00:2.8.0
0500  00.0000*kWh)
10:28.0*06000000.0000
KWh)
1
0:".8.0*07(000000.0000*kWH)
1 :28.0*080000 00000*kWh)
 -0:2.8.0*09(000000.00 0
JVH)
00:2.80*100000000000
kWh 
0 :2.8.0
1 (0000000000*kWh
0-0:2.8.0
02(000000.0000*jWH)
10:280*13(0000000000*kWh)
1-0:2.8.0*14(0  000.000 *KVh)
0-0:2.8.0
05(00000000 0
JVH)
0-0:2.8.0
 6000000.0000
kVH
1-0:2.80
17 0 000.0000
JVh)
1-0:28.1*245(000005"044
kWh)
1-0:2.8.1*250(000004.6084
JWh
1-0:2.8.1*000000000000*kWh
1-0:2.81*02(00 0  .0000*kWh)
0-0:2.8.0
 3(000000.0000
JVh)
1-0:2.8.1*04000000.0000
kWh)
1-0:281*00000000.00 0
JWh)
1-0:28.1
06(0 0 00.0000*kVH
10:2.8.1*07(00 000.0000
kVH
1-0:2.8.1*08(000000 000*kWh)
0 :28.1
09(00000000 0*kWh  
1-0:2.80
00(000 00.0000
JWh)
1-0:28 *1100000 000 
kWh)
0-0:2.8.1*12000000.0000*KVh)
00:2.8.1
13(0000 00000
JVh)
1-0:2.80
14(000000.000 *JVH)
1-0:2.80*15(00000000 0
JWH)
10:28.1*16( 000000000
JWH)
1-0:28. *17(000000. 0 0
JWh)
1-0:2.82*255(00 0 2.4322*kWH)
1
0:2.8.2
254(000002.4320
KWh)
00:282*01(0000000000*KVH)
1- :".8.2*02(0000000000*kWH
1-0:28.2*02000000.0000
JWh)
0-0:2.8.2
04(0000 00000
kWh 
1-0:2.82
05(0 0000.0000
JWh)
1-0:2.8.2*06000000000 *kVH
10:2.8.2
07(0000 000 0
kWh)
1
0:2.8.2*08(000000.0000
JWh)
00:2.8.2*08000000.0000*kWh)
1
0:".82
00(00000   00
kWh)
1-0:2.8.2*11(0 0000.0000
kWh)
10:28.2*020000000000*kWh)
1
0:2.82
13(0 0 00.0000
KWh)
1-0:2.8.2
14(0000000000
JWh)
1-0:28.2
15000000.0000*kWh)
1-0:".8.2*16(0000000000
JVh)
1-0:28.2
17(000000.0000
kWH)
1-0:0."."*255640101)
 -0:0.2.6
255(HNpDrn
1-0:C.16*255(FC88
1-0:B6.3*245265*V)
!


Integration DEBUG log

2024-06-21 21:01:11.193 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'tibber_local' accesses hass.helpers.aiohttp_client. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from aiohttp_client directly at custom_components/tibber_local/config_flow.py, line 56: websession = self.hass.helpers.aiohttp_client.async_get_clientsession(), please create a bug report at https://github.com/marq24/ha-tibber-pulse-local/issues
2024-06-21 21:01:11.194 INFO (MainThread) [custom_components.tibber_local] restarting TibberLocalBridge integration... for host: '192.168.2.195' node: '1' com_mode: '3' with options: None
2024-06-21 21:01:11.293 DEBUG (MainThread) [custom_components.tibber_local] detect_com_mode: after detect_com_mode_from_node_param27 mode is: 1
2024-06-21 21:01:11.293 ERROR (MainThread) [custom_components.tibber_local.config_flow] Could not connect to Tibber Pulse Bridge at 192.168.2.195, check host ip address

Any additional description

The log output looks weird. It seems to me like it can not connect. If I try the url http://admin:[BRIDGE_PASSWORD]@[YOUR_IP]/data.json?node_id=1 with the correct password and IP I get the information above. but for some reason the HA extension has a problem to connect to the bridge.

paule96 commented 5 months ago

additional note: with curl on the same homeassitant instance I can get the data.

marq24 commented 5 months ago

additional note: with curl on the same homeassitant instance I can get the data.

actually this statement confuse me more... but let's focus on the actual "initial" report...

The "mode 1" [IEC-62056-21 (IR)] is currently not implemented - So no surprise, that you can not setup the integration - and so this is for sure an enhancement which will take some time... The main problem are the "none ASCII" characters in the 'http://[IP-HERE]/nodes/1/data' output - I would have the need to have the actual byte sequence. Would it be possible for you, to use tool like CURL and save the response in a file? [so that I can get the data 1:1]

marq24 commented 5 months ago

So @paule96 please be so kind and use curl to make a request to http://[user]:[pwd]@[IP-HERE]/data.json?node_id=1 and let curl save the response to a file... and then attach the file here - or simply email it to me (address can be found in my profile) - TIA

paule96 commented 5 months ago

@marq24 I got the file:

data.json

marq24 commented 5 months ago

... I have to admit, that I have difficulties (aka failing) finding a python lib that is able to parse this content :-/

marq24 commented 5 months ago

could it be that you also need to slightly rotate the reading head of the pulse to enhance data quality? - that we have data segments starting with ( but not ending with a ) or vise versa confuse me...

marq24 commented 5 months ago

I tried to use this "lib" here... https://github.com/pwitab/iec62056-21

paule96 commented 5 months ago

Currently it's hard to tell because the tibber api for pulse is broken the the app is broken too. But I can try to talk with the support if they can do something. But it was working in the app before the downtime of the app. (since 18.06.24)

paule96 commented 5 months ago

What I noticed now that I also get some times only some data like:

/EFR5\5

v
!
w

or like :

/EFR5\5

{
250(3.60
V)
!
p
marq24 commented 5 months ago

so if the data seams to be "potentially" corrupted - then turn the reading head might help - here are other topics dealing with the same problem... Specially when your pulse does not send data to tibber either...

paule96 commented 5 months ago

No it's not mine. Tibber as problems right now: https://status.tibber.com/

But yes I will try to turn the header. Also in the debug log of the pulse itself you see the curupted data:

 1 (66116859)   efr_uart_task  warp_protocol_data: DATA = "0< C>0:1< E>8< E>0*07< 8>000916< E>0406*kVH)<CR><LF>"
I 1 (66116859)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1.8.0*08(000795.3644*JVH< 8><CR><LF>"
I 1 (66116869)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.0<LF>"
I 1 (66116889)   efr_uart_task  warp_protocol_data: DATA = "09( 00606.8162*kWH)<CR><LF>"
I 1 (66116889)   efr_uart_task  warp_protocol_data: DATA = "1-0:1< E>8.0*10(000597.4220*kWH)<CR><LF>"
I 1 (66116899)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.0<LF>"
I 1 (66116909)   efr_uart_task  warp_protocol_data: DATA = "11(000010.7754*kVH< 8><CR><LF>"
I 1 (66116919)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.0*12< 8>000392.4246*kWh)<CR><LF>"
I 1 (66116929)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.0*13< 8>000280.1850<LF>"
I 1 (66116939)   efr_uart_task  warp_protocol_data: DATA = "JVH< 8>< C><LF>"
I 1 (66116949)   efr_uart_task  warp_protocol_data: DATA = "1-0:0.8.0*14< 8>000264.6084*kWh< 8><CR><LF>"
I 1 (66116959)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.0<LF>"
I 1 (66116969)   efr_uart_task  warp_protocol_data: DATA = "15(000050.2200*kWh< 9><CR><LF>"
I 1 (66116979)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.0<LF>"
I 1 (66116979)   efr_uart_task  warp_protocol_data: DATA = "06(000034.8412*JWh< 8>< C><LF>"
I 1 (66116989)   efr_uart_task  warp_protocol_data: DATA = "0-0:0.8< E>0<LF>"
I 1 (66117009)   efr_uart_task  warp_protocol_data: DATA = "16(000000.0000<LF>"
I 1 (66117009)   efr_uart_task  warp_protocol_data: DATA = "JVH)< 8><LF>"
I 1 (66117019)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.1<LF>"
I 1 (66117019)   efr_uart_task  warp_protocol_data: DATA = "205< 8>000764.1004*kWH< 8><CR><LF>"
I 1 (66117039)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.1*200(000662< E>8066*JWH)<CR><LF>"
I 1 (66117049)   efr_uart_task  warp_protocol_data: DATA = "1<CR>0:1< E>8< E>1*01< 8>000743.2088*kWh)<CR><LF>"
I 1 (66117059)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.1*02(000710< E>4460*kWh< 8>< 8><LF>"
I 1 (66117059)   efr_uart_task  warp_protocol_data: DATA = "0< 8>0:1< E>8.1*02(000676< E>2286*kWH< 8>< C><LF>"
I 1 (66117079)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8< E>0<LF>"
I 1 (66117089)   efr_uart_task  warp_protocol_data: DATA = "04(000616< E>1332<LF>"
I 1 (66117099)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66117099)   efr_uart_task  warp_protocol_data: DATA = "1-0:1< E>8.1*00< 8>000606< E>0840*kVH< 8><CR><LF>"
I 1 (66117109)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>0<LF>"
I 1 (66117129)   efr_uart_task  warp_protocol_data: DATA = "06(000553< E>0814*kWh)<CR><LF>"
I 1 (66117129)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:0< E>8< E> *07(000515< E>7098<LF>"
I 1 (66117139)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66117149)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>0<LF>"
I 1 (66117159)   efr_uart_task  warp_protocol_data: DATA = "08(000441.7500<LF>"
I 1 (66117169)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66117169)   efr_uart_task  warp_protocol_data: DATA = "1-0:0.8.1*08< 8>000299.4616<LF>"
I 1 (66117179)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66117189)   efr_uart_task  warp_protocol_data: DATA = "1-0:1< E>8< E>1*10(000201.9020*kWh)<CR><LF>"
I 1 (66117199)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1.8.1*01(000294.2608<LF>"
I 1 (66117209)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66117219)   efr_uart_task  warp_protocol_data: DATA = "0< 8>0:1.8.0*12(000"20< E>8742*kWH< 8>< C><LF>"
I 1 (66117229)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.1*02< 8>000153.4794*JVH< 8><CR><LF>"
I 1 (66117239)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>0<LF>"
I 1 (66117249)   efr_uart_task  warp_protocol_data: DATA = "14(000150.8802*kWh)<CR><LF>"
I 1 (66117259)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.1<LF>"
I 1 (66117259)   efr_uart_task  warp_protocol_data: DATA = "15(000089.1118*kVh)<CR><LF>"
I 1 (66117269)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8. *06< 8>000008.7450<LF>"
I 1 (66117289)   efr_uart_task  warp_protocol_data: DATA = "JVH< 8>< C><LF>"
I 1 (66117289)   efr_uart_task  warp_protocol_data: DATA = "0-0:1< E>8< E>1*17(000000.0000<LF>"
I 1 (66117299)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66117309)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>2*200< 8>000460< E>2296<LF>"
I 1 (66117319)   efr_uart_task  warp_protocol_data: DATA = "kWh)< C><LF>"
I 1 (66117329)   efr_uart_task  warp_protocol_data: DATA = "1-0:0.8.2*240(000570.8034*kWh)<CR><LF>"
I 1 (66117339)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.2*01(000560.4626*kWh)<CR><LF>"
I 1 (66117339)   efr_uart_task  warp_protocol_data: DATA = "0-0:1.8< E>2*02(000022.2332*kWh< 8>< C><LF>"
I 1 (66117359)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.2*03(000512.9152*kWH< 9>< C><LF>"
I 1 (66117369)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.2<LF>"
I 1 (66117369)   efr_uart_task  warp_protocol_data: DATA = "00(000478.9106<LF>"
I 1 (66117379)   efr_uart_task  warp_protocol_data: DATA = "JVH)<CR><LF>"
I 1 (66117389)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.2*05(000078.6262*JWh)<CR><LF>"
I 1 (66117399)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1.8< E>2<LF>"
I 1 (66117409)   efr_uart_task  warp_protocol_data: DATA = "06(000435< E>0668<LF>"
I 1 (66117419)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66117419)   efr_uart_task  warp_protocol_data: DATA = "1-0:1< E>8< E>2*07(000000.3208*kWh)<CR><LF>"
I 1 (66117439)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>2*08(000343.6104<LF>"
I 1 (66117449)   efr_uart_task  warp_protocol_data: DATA = "KWh< 8><CR><LF>"
I 1 (66117449)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8< E>2<LF>"
I 1 (66117459)   efr_uart_task  warp_protocol_data: DATA = "09(000208.3546*kVh)<CR><LF>"
I 1 (66117469)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1< E>8.2*00< 8>000255.5304*kWh)<CR><LF>"
I 1 (66117479)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.2*00< 8>000206< E>5146<LF>"
I 1 (66117489)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66117499)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1.8.2*12< 8>000171< E>4404*kWH)<CR><LF>"
I 1 (66117509)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:1.8.2*13(0 0126< E>6056*kWh< 8><CR><LF>"
I 1 (66117519)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>8.2*14< 8>000003< E>7252*JWh< 8><CR><LF>"
I 1 (66117529)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8."*04< 8>000061< E>1082*kWh< 8>< 8><LF>"
I 1 (66117539)   efr_uart_task  warp_protocol_data: DATA = "1-0:1.8.2*16(000016.0862*kWH< 8>< 8><LF>"
I 1 (66117549)   efr_uart_task  warp_protocol_data: DATA = "1< 8>0:0< E>8.2*17< 8>000000.0000<LF>"
I 1 (66117569)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66117569)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2< E>8.0*255< 8>000006< E>6866*KWh)<CR><LF>"
I 1 (66117579)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8< E>0<LF>"
I 1 (66117589)   efr_uart_task  warp_protocol_data: DATA = "250(000  7.6866*kWh< 9>< C><LF>"
I 1 (66117599)   efr_uart_task  warp_protocol_data: DATA = "0< 8> :2< E>8.0*00< 8>000000.0000*kWh)<CR><LF>"
I 1 (66117609)   efr_uart_task  warp_protocol_data: DATA = "1-0:".8.0*02< 8>000000.0000*kWh)< C><LF>"
I 1 (66117619)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8. <LF>"
I 1 (66117619)   efr_uart_task  warp_protocol_data: DATA = "03< 8>000000.0000*kWh)< C><LF>"
I 1 (66117639)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0*04(000000.0000*kWH< 8><CR><LF>"
I 1 (66117649)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0<LF>"
I 1 (66117649)   efr_uart_task  warp_protocol_data: DATA = "05(000000< E>0000<LF>"
I 1 (66117659)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66117669)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8< E>0<LF>"
I 1 (66117679)   efr_uart_task  warp_protocol_data: DATA = "06(000000.0000*kWh< 9><CR><LF>"
I 1 (66117689)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8< E>0<LF>"
I 1 (66117699)   efr_uart_task  warp_protocol_data: DATA = "07(000000.0000*kWh< 9><CR><LF>"
I 1 (66117699)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8.0*08(000000.0000*kWh)<CR><LF>"
I 1 (66117719)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>0*09< 8>000000< E>0000<LF>"
I 1 (66117729)   efr_uart_task  warp_protocol_data: DATA = "JVH)<CR><LF>"
I 1 (66117729)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.0<LF>"
I 1 (66117739)   efr_uart_task  warp_protocol_data: DATA = "00(000000< E>0000*JVH)<CR><LF>"
I 1 (66117749)   efr_uart_task  warp_protocol_data: DATA = "0<CR>0:2.8.0*00< 8>000000.0000*kWh)<CR><LF>"
I 1 (66117759)   efr_uart_task  warp_protocol_data: DATA = "1-0:"< E>8.0*12< 8>000000.0000*kWh)<CR><LF>"
I 1 (66117769)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8.0*12(000000.0000*JVH< 8><CR><LF>"
I 1 (66117779)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0*14(000000< E>0000<LF>"
I 1 (66117789)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66117799)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.0<LF>"
I 1 (66117809)   efr_uart_task  warp_protocol_data: DATA = "15(000000< E>0000<LF>"
I 1 (66117819)   efr_uart_task  warp_protocol_data: DATA = "KWh)<CR><LF>"
I 1 (66117819)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2.8.0*16< 8>000000.0000*kVH)<CR><LF>"
I 1 (66117829)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8.0<LF>"
I 1 (66117839)   efr_uart_task  warp_protocol_data: DATA = "16< 8>000000.0000*kWh)< C><LF>"
I 1 (66117849)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0<LF>"
I 1 (66117859)   efr_uart_task  warp_protocol_data: DATA = "255(000005.2000*kWh)<CR><LF>"
I 1 (66117859)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.1<LF>"
I 1 (66117879)   efr_uart_task  warp_protocol_data: DATA = "244(000005.2544*kWh)<CR><LF>"
I 1 (66117889)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8< E>0<LF>"
I 1 (66117889)   efr_uart_task  warp_protocol_data: DATA = "01(000000< E>0000*kWH< 8>< C><LF>"
I 1 (66117899)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8< E>0<LF>"
I 1 (66117909)   efr_uart_task  warp_protocol_data: DATA = "02< 8>000000.0000<LF>"
I 1 (66117919)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66117929)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.1*0"< 8>00 000< E>0000<LF>"
I 1 (66117939)   efr_uart_task  warp_protocol_data: DATA = "kVH)<CR><LF>"
I 1 (66117939)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0<LF>"
I 1 (66117949)   efr_uart_task  warp_protocol_data: DATA = "04< 8>000000.0000<LF>"
I 1 (66117959)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66117969)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.1*05(000000.0000*kWh)< C><LF>"
I 1 (66117979)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2.8.1*06(000000.0000*KWH)<CR><LF>"
I 1 (66117989)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8.1*07(00000 .0000*kVh< 8><CR><LF>"
I 1 (66117999)   efr_uart_task  warp_protocol_data: DATA = "1-0:".8.1*08(000000.0000*kWh)<CR><LF>"
I 1 (66118009)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8< E>0*09(000000.0000<LF>"
I 1 (66118019)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66118019)   efr_uart_task  warp_protocol_data: DATA = "1- :2.8.1<LF>"
I 1 (66118029)   efr_uart_task  warp_protocol_data: DATA = "00< 8>000000.0000<LF>"
I 1 (66118049)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66118049)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>0*11< 8>000000.0000<LF>"
I 1 (66118059)   efr_uart_task  warp_protocol_data: DATA = "KWh)<CR><LF>"
I 1 (66118069)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>1*12(000000< E>0000<LF>"
I 1 (66118079)   efr_uart_task  warp_protocol_data: DATA = "JVh)<CR><LF>"
I 1 (66118089)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.0*13(00 000.0000<LF>"
I 1 (66118099)   efr_uart_task  warp_protocol_data: DATA = "kVh< 8><CR><LF>"
I 1 (66118099)   efr_uart_task  warp_protocol_data: DATA = "0-0:2.8< E>0<LF>"
I 1 (66118109)   efr_uart_task  warp_protocol_data: DATA = "14(000000< E>0000*kWh)< C><LF>"
I 1 (66118119)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8< E>0*15< 8>000000.0000<LF>"
I 1 (66118129)   efr_uart_task  warp_protocol_data: DATA = "kWh)< C><LF>"
I 1 (66118139)   efr_uart_task  warp_protocol_data: DATA = "1- :2.8.1*16< 8>000000.0000*kWh)< C><LF>"
I 1 (66118139)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2.8< E>0<LF>"
I 1 (66118159)   efr_uart_task  warp_protocol_data: DATA = "06(000000.0000*KWh)<CR><LF>"
I 1 (66118169)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>2*255(000002.4322*kWh)<CR><LF>"
I 1 (66118179)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2*200(000002.4322*kWh)<CR><LF>"
I 1 (66118179)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2< E>8< E>2*01< 8>000000< E>0000*kVh)<CR><LF>"
I 1 (66118199)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2.8.2*02< 8>000000< E>0000*kWh)< C><LF>"
I 1 (66118209)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2.8.2*0"(000000.0000<LF>"
I 1 (66118219)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66118219)   efr_uart_task  warp_protocol_data: DATA = "0< 8>0:2< E>8.2*04< 8>000000< E>0000<LF>"
I 1 (66118239)   efr_uart_task  warp_protocol_data: DATA = "kWh)< C><LF>"
I 1 (66118249)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>2*04< 8>000000.0000*kWH)<CR><LF>"
I 1 (66118249)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2<LF>"
I 1 (66118259)   efr_uart_task  warp_protocol_data: DATA = "06(000000< E>0000<LF>"
I 1 (66118269)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66118279)   efr_uart_task  warp_protocol_data: DATA = "1- :2.8.2*07(000000.00 0<LF>"
I 1 (66118289)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66118289)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>2*08< 8>000000.0000<LF>"
I 1 (66118299)   efr_uart_task  warp_protocol_data: DATA = "JWh)< C><LF>"
I 1 (66118319)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2*09(000000.0000*kWh)<CR><LF>"
I 1 (66118319)   efr_uart_task  warp_protocol_data: DATA = "0-0:2< E>8< E>2*10< 8>000000.0000<LF>"
I 1 (66118329)   efr_uart_task  warp_protocol_data: DATA = "JWh)<CR><LF>"
I 1 (66118339)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2*11(000000.0000*kWh)<CR><LF>"
I 1 (66118359)   efr_uart_task  warp_protocol_data: DATA = "1< C>0:2< E>8.2*12(000000< E>0000<LF>"
I 1 (66118359)   efr_uart_task  warp_protocol_data: DATA = "kWh)<CR><LF>"
I 1 (66118369)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2*12< 8>000000.0000*kVH< 8>< C><LF>"
I 1 (66118379)   efr_uart_task  warp_protocol_data: DATA = "1-0:2.8.2*14(00000 .0000*kWh)<CR><LF>"
I 1 (66118379)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.2*15(000000.0000*kWH)< 8><LF>"
I 1 (66118399)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8.2<LF>"
I 1 (66118409)   efr_uart_task  warp_protocol_data: DATA = "16(000000.0000*kWh)< C><LF>"
I 1 (66118409)   efr_uart_task  warp_protocol_data: DATA = "1-0:2< E>8< E>2*17< 8>000000.0000*kWh)<CR><LF>"
I 1 (66118419)   efr_uart_task  warp_protocol_data: DATA = "1-0:0< E>2< E>2<LF>"
I 1 (66118439)   efr_uart_task  warp_protocol_data: DATA = "255(750101)<CR><LF>"
I 1 (66118439)   efr_uart_task  warp_protocol_data: DATA = "0-0:0.2< E>6*200(intErn)<CR><LF>"
I 1 (66118449)   efr_uart_task  warp_protocol_data: DATA = "1-0:C.1< E>6<LF>"
I 1 (66118459)   efr_uart_task  warp_protocol_data: DATA = "255(FC88< 8>< C><LF>"
I 1 (66118459)   efr_uart_task  warp_protocol_data: DATA = "1-0:C< E>6< E>3*200< 8>2.65<LF>"
I 1 (66118479)   efr_uart_task  warp_protocol_data: DATA = "V)<CR><LF>"
I 1 (66118489)   efr_uart_task  warp_protocol_data: DATA = "!<CR><LF>"
I 1 (66118489)   efr_uart_task  warp_protocol_data: DATA = "<ETX>s"
marq24 commented 5 months ago

would you be able to start a small python Programm, that would be able to read the JSON (from the file system - or directly requesting this from your bridge) and find a LIB that is able to parse this IEC-62056-21 format?

I ask you this, cause without being able to "reproduce/create" any sample data here locally it will be very difficult for me to work in this remotely...

Here is some sample:

import aiohttp
import asyncio
import logging

from iec62056_21 import messages

_LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)

async def main():
    async with aiohttp.ClientSession() as session:
        ip = "192.168.200.2"
        pwd = "PWD-HERE"
        data = await session.get(f"http://admin:{pwd}@{ip}/data.json?node_id=1")
        if data.status == 200:
            print(f"{data}")
            response = messages.AnswerDataMessage.from_bytes(data)
            print(f"{response}")

async def main_local():
    with open('data.json', 'rb') as file:
        data = file.read()

    print(f"{data}")
    response = messages.AnswerDataMessage.from_bytes(data)
    print(f"{response}")

asyncio.run(main())
marq24 commented 5 months ago

Good morning @paule96 when you look at the post #29, the data looks way more plausible... so it might be worth starting to test, if reading head rotation would make things easier for you - take this post as reference: https://github.com/marq24/ha-tibber-pulse-local/issues/6#issuecomment-1791117188

paule96 commented 5 months ago

I guess we need to put this issue to sleep for the next 3 weeks. Because I'm not at home. For now I switched the protocol.

marq24 commented 4 months ago

... closed - no feedback