Dodając swój licznik wody, znalazłem “w eterze” liczniki gazu, dodałem z ciekawości licznik sąsiadów i ciekawą rzecz znalazłem. Myślę, że należałoby się temu przyjrzeć, bo widzę, że ten licznik nadaje te komunikaty co jakiś czas.
W konfiguracji, sensor jest tako:
- platform: wmbus
type: unismart
meter_id: 0x00002652
key: "00000000000000000000000000000000"
add_prefix: false
lqi:
name: "gaz lqi"
rssi:
name: "gaz RSSI"
total_gaz_m3:
name: "gaz"
Odczyty pięknie spływały, a w logach takie coś - czyli wszystko prawidłowo:
[05:45:56][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -85 dBm LQI: 138 Mode: T1 T: 5E44B8055226000001037AC70050A5BA6A19342BA52A97EEA16708940FB9D8824CEAAF87BD85A294F64CCB47D39922EFD7E405CA675D27E7BFE594346E24D89496EBA71B778F8B489C5B92B853B4DB23BA759F1A8559C047FB03AFF73D2908 (95)
[05:45:56][D][wmbus:090]: Decrypted T : 5E44B8055226000001037AC70050A52F2F0C7844801201046D0026EC2B0C943A63576400446D0026E12B4C943A0836640001FD670002FD74A3050DFD0C06559496EBA71B778F8B489C5B92B853B4DB23BA759F1A8559C047FB03AFF73D2908 (95)
[05:45:56][V][sensor:043]: 'gas lqi': Received new state 138.000000
[05:45:56][D][sensor:094]: 'gas lqi': Sending state 138.00000 with 0 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 68 bytes
[05:45:56][V][sensor:043]: 'gas RSSI': Received new state -85.000000
[05:45:56][D][sensor:094]: 'gas RSSI': Sending state -85.00000 dBm with 0 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 72 bytes
[05:45:56][V][sensor:043]: 'gas': Received new state 6457.629883
[05:45:56][D][sensor:094]: 'gas': Sending state 6457.62988 m³ with 3 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 72 bytes
[05:45:56][W][component:214]: Component wmbus took a long time for an operation (0.13 s).
[05:45:56][W][component:215]: Components should block for at most 20-30ms.
aż licznik, przysłał to:
[05:48:04][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -86 dBm LQI: 142 Mode: T1 T: 0E47B8055226000001038AC7000080 (15)
[05:48:04][E][wmbus:311]: CI unknown
[05:48:18][D][api:102]: Accepted 192.168.0.143
[05:48:18][V][api.connection:1032]: Hello from client: 'Home Assistant 2023.11.2' | 192.168.0.143 | API Version 1.9
[05:48:19][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
Wygląda to tak, że nie wiedział co zrobić z odebraną ramką, co finalnie spowodowało zerwanie połączenia z HA, a wtedy encja w HA zmieniła się na “nieznany”, co się potwierdza na historii w HA.
Również dla stanu wodomierza:
z racji, że testuje te odczyty to loguje wszystko z esp jako debug do pliku, to sprawdziłem jak to wyglądało w czasie gdy była “dziura” rano:
[05:45:56][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -85 dBm LQI: 138 Mode: T1 T: 5E44B8055226000001037AC70050A5BA6A19342BA52A97EEA16708940FB9D8824CEAAF87BD85A294F64CCB47D39922EFD7E405CA675D27E7BFE594346E24D89496EBA71B778F8B489C5B92B853B4DB23BA759F1A8559C047FB03AFF73D2908 (95)
[05:45:56][D][wmbus:090]: Decrypted T : 5E44B8055226000001037AC70050A52F2F0C7844801201046D0026EC2B0C943A63576400446D0026E12B4C943A0836640001FD670002FD74A3050DFD0C06559496EBA71B778F8B489C5B92B853B4DB23BA759F1A8559C047FB03AFF73D2908 (95)
[05:45:56][V][sensor:043]: 'gas lqi': Received new state 138.000000
[05:45:56][D][sensor:094]: 'gas lqi': Sending state 138.00000 with 0 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 68 bytes
[05:45:56][V][sensor:043]: 'gas RSSI': Received new state -85.000000
[05:45:56][D][sensor:094]: 'gas RSSI': Sending state -85.00000 dBm with 0 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 72 bytes
[05:45:56][V][sensor:043]: 'gas': Received new state 6457.629883
[05:45:56][D][sensor:094]: 'gas': Sending state 6457.62988 m³ with 3 decimals of accuracy
[05:45:56][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[05:45:56][V][json:058]: Size after shrink 72 bytes
[05:45:56][W][component:214]: Component wmbus took a long time for an operation (0.13 s).
[05:45:56][W][component:215]: Components should block for at most 20-30ms.
[05:48:04][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -86 dBm LQI: 142 Mode: T1 T: 0E47B8055226000001038AC7000080 (15)
[05:48:04][E][wmbus:311]: CI unknown
[05:48:18][D][api:102]: Accepted 192.168.0.143
[05:48:18][V][api.connection:1032]: Hello from client: 'Home Assistant 2023.11.2' | 192.168.0.143 | API Version 1.9
[05:48:19][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
[05:53:04][I][ota:117]: Boot seems successful, resetting boot loop counter.
[05:53:04][D][esp32.preferences:114]: Saving 1 preferences to flash...
[05:53:04][V][esp32.preferences:126]: sync: key: 233825507, len: 4
[05:53:04][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[05:54:28][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -87 dBm LQI: 135 Mode: T1 T: 0E47B8055226000001038AC7000080 (15)
[05:54:28][E][wmbus:311]: CI unknown
[05:54:59][D][api:102]: Accepted 192.168.0.143
[05:54:59][V][api.connection:1032]: Hello from client: 'Home Assistant 2023.11.2' | 192.168.0.143 | API Version 1.9
[05:54:59][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
[05:58:44][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -87 dBm LQI: 137 Mode: T1 T: 0E47B8055226000001038AC7000080 (15)
[05:58:44][E][wmbus:311]: CI unknown
[06:01:05][D][wmbus:184]: Meter ID [0x00001139] RSSI: -91 dBm LQI: 146 Mode: T1 not found in configuration T: 5E44B8053911000001037AC600508555D72B3C4E09FA58DA72D43C83393EF24217E390155BD00B578FAA53352B9C7E41247B6287ABF9A40B5416CE99319DD8BF76FD0527BB51A23881DDCFBAF1B69D9A4FCE39EBC4A5CEDA57888B4309CFC5 (95)
[06:03:07][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -87 dBm LQI: 151 Mode: T1 T: 0E47B8055226000001038AC8000080 (15)
[06:03:07][E][wmbus:311]: CI unknown
[06:03:39][D][api:102]: Accepted 192.168.0.143
[06:03:39][V][api.connection:1032]: Hello from client: 'Home Assistant 2023.11.2' | 192.168.0.143 | API Version 1.9
[06:03:39][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
[06:08:08][I][ota:117]: Boot seems successful, resetting boot loop counter.
[06:08:08][D][esp32.preferences:114]: Saving 1 preferences to flash...
[06:08:08][V][esp32.preferences:126]: sync: key: 233825507, len: 4
[06:08:08][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[06:08:11][D][wmbus:184]: Meter ID [0x00044213] RSSI: -89 dBm LQI: 146 Mode: T1 not found in configuration T: 0E47B8051342040001038A97000080 (15)
[06:15:05][D][sntp:078]: Synchronized time: 2023-11-12 06:15:05
[06:20:19][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -85 dBm LQI: 142 Mode: T1 T: 0E47B8055226000001038AC9000080 (15)
[06:20:19][E][wmbus:311]: CI unknown
[06:22:53][D][wmbus:184]: Meter ID [0x00044213] RSSI: -88 dBm LQI: 147 Mode: T1 not found in configuration T: 0E47B8051342040001038A98000080 (15)
[06:24:35][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -86 dBm LQI: 143 Mode: T1 T: 0E47B8055226000001038AC9000080 (15)
[06:24:35][E][wmbus:311]: CI unknown
[06:25:08][D][api:102]: Accepted 192.168.0.143
[06:25:08][V][api.connection:1032]: Hello from client: 'Home Assistant 2023.11.2' | 192.168.0.143 | API Version 1.9
[06:25:08][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
[06:25:36][I][wmbus:084]: Using driver 'apator162' for ID [0x06335627] RSSI: -54 dBm LQI: 128 Mode: T1 T: 3E4401062756330605077A830030850097D4E33C22673F51C63A3106993BA428C18BD61577BC420DCF87BE1BC69A8AE86669E25401200D8217E55B3A17B0BD (63)
[06:25:36][D][wmbus:090]: Decrypted T : 3E4401062756330605077A830030852F2F0F992CEB97180200432500830018FAA988EB01F0150210B405000071013100000000000000A0C7FFB704FFFFF0D1 (63)
[06:25:36][V][sensor:043]: 'lqi': Received new state 128.000000
[06:25:36][D][sensor:094]: 'lqi': Sending state 128.00000 with 0 decimals of accuracy
[06:25:36][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[06:25:36][V][json:058]: Size after shrink 64 bytes
[06:25:36][V][sensor:043]: 'RSSI': Received new state -54.000000
[06:25:36][D][sensor:094]: 'RSSI': Sending state -54.00000 dBm with 0 decimals of accuracy
[06:25:36][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[06:25:36][V][json:058]: Size after shrink 68 bytes
[06:25:36][V][sensor:043]: 'water': Received new state 1.460000
[06:25:36][D][sensor:094]: 'water': Sending state 1.46000 m³ with 3 decimals of accuracy
[06:25:36][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[06:25:36][V][json:058]: Size after shrink 72 bytes
[06:25:36][W][component:214]: Component wmbus took a long time for an operation (0.14 s).
[06:25:36][W][component:215]: Components should block for at most 20-30ms.
[06:29:35][I][ota:117]: Boot seems successful, resetting boot loop counter.
[06:29:35][D][esp32.preferences:114]: Saving 1 preferences to flash...
[06:29:35][V][esp32.preferences:126]: sync: key: 233825507, len: 4
[06:29:35][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[06:36:55][D][sntp:078]: Synchronized time: 2023-11-12 06:36:55
[06:51:55][D][sntp:078]: Synchronized time: 2023-11-12 06:51:55
[06:58:52][D][wmbus:184]: Meter ID [0x00044213] RSSI: -88 dBm LQI: 134 Mode: T1 not found in configuration T: 5E44B8051342040001037A9A00508535FE944A18237C98F448C31444389424ACC42C3C11E5CF40E2E2FCE2092C308CF70B48E249E8AD08253ED4105989E3FB52BCE9D6E7043E39851CDD7498FAE131188A936F54B3342D374CB2308E4BEF8B (95)
[07:06:55][D][sntp:078]: Synchronized time: 2023-11-12 07:06:55
[07:08:25][I][wmbus:084]: Using driver 'apator162' for ID [0x06335627] RSSI: -55 dBm LQI: 128 Mode: T1 T: 3E4401062756330605077A85003085368AE174818A78DF1B17EE06CE72525FE27838B13A5AFF2CD572BC1124BE710C164EEDFBD6B5632D9211D5A6133C96BC (63)
[07:08:25][D][wmbus:090]: Decrypted T : 3E4401062756330605077A850030852F2F0FC82CEB97180200432500830018FAA988EB01F0150210B805000071013100000000000000A0C7FFB704FFFF862E (63)
[07:08:25][V][sensor:043]: 'lqi': Received new state 128.000000
[07:08:25][D][sensor:094]: 'lqi': Sending state 128.00000 with 0 decimals of accuracy
[07:08:25][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:08:25][V][json:058]: Size after shrink 64 bytes
[07:08:25][V][sensor:043]: 'RSSI': Received new state -55.000000
[07:08:25][D][sensor:094]: 'RSSI': Sending state -55.00000 dBm with 0 decimals of accuracy
[07:08:25][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:08:25][V][json:058]: Size after shrink 68 bytes
[07:08:25][V][sensor:043]: 'water': Received new state 1.464000
[07:08:25][D][sensor:094]: 'water': Sending state 1.46400 m³ with 3 decimals of accuracy
[07:08:25][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:08:25][V][json:058]: Size after shrink 72 bytes
[07:08:25][W][component:214]: Component wmbus took a long time for an operation (0.15 s).
[07:08:25][W][component:215]: Components should block for at most 20-30ms.
[07:16:23][D][wmbus:184]: Meter ID [0x00001139] RSSI: -89 dBm LQI: 134 Mode: T1 not found in configuration T: 5E44B8053911000001037ACB00508551889A4EF43AD3CD352534B1C15DE74BD439F4BD10BDF293ECFDDBC193E10B164AA567429CFB9CE8B85247337B7296FD4F8CBE71B4AE541CEBA2C8D2EC98FCBC96C4D9884E3C8F4F604A9ABE6E1C8CA5 (95)
[07:20:21][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -86 dBm LQI: 146 Mode: T1 T: 5E44B8055226000001037ACD0050859259EFE0C8D6493703B9E591BE4B9453C39DB5BD22EEC7121EE94239990C2F56726A84325AA8E21D48D69A106B550359D81815BFD5FE255634F9705C46AB43AEDE875D1952F0D321AD16ABC3A782C2C1 (95)
[07:20:21][D][wmbus:090]: Decrypted T : 5E44B8055226000001037ACD0050852F2F0C7844801201046D2227EC2B0C943A63576400446D0026E12B4C943A0836640001FD670002FD74A3050DFD0C0655D81815BFD5FE255634F9705C46AB43AEDE875D1952F0D321AD16ABC3A782C2C1 (95)
[07:20:21][V][sensor:043]: 'gas lqi': Received new state 146.000000
[07:20:21][D][sensor:094]: 'gas lqi': Sending state 146.00000 with 0 decimals of accuracy
[07:20:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:20:21][V][json:058]: Size after shrink 68 bytes
[07:20:21][V][sensor:043]: 'gas RSSI': Received new state -86.000000
[07:20:21][D][sensor:094]: 'gas RSSI': Sending state -86.00000 dBm with 0 decimals of accuracy
[07:20:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:20:21][V][json:058]: Size after shrink 72 bytes
[07:20:21][V][sensor:043]: 'gas': Received new state 6457.629883
[07:20:21][D][sensor:094]: 'gas': Sending state 6457.62988 m³ with 3 decimals of accuracy
[07:20:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:20:21][V][json:058]: Size after shrink 72 bytes
[07:20:21][W][component:214]: Component wmbus took a long time for an operation (0.14 s).
[07:20:21][W][component:215]: Components should block for at most 20-30ms.
[07:21:21][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -86 dBm LQI: 137 Mode: T1 T: 5E44B8055226000001037ACD005085C615666A3420BE00D0DE6F50B6D1CFFEE3C4C25CCFD0EC4FFACC7D25CF2183C98951AF895ACAC893B618A8154B131C97278A5E4B1A5249E48969F41C3A72E50D00DCCAD5B5B308A2D6F34A99E731861F (95)
[07:21:21][D][wmbus:090]: Decrypted T : 5E44B8055226000001037ACD0050852F2F0C7844801201046D2327EC2B0C943A63576400446D0026E12B4C943A0836640001FD670002FD74A3050DFD0C0655278A5E4B1A5249E48969F41C3A72E50D00DCCAD5B5B308A2D6F34A99E731861F (95)
[07:21:21][V][sensor:043]: 'gas lqi': Received new state 137.000000
[07:21:21][D][sensor:094]: 'gas lqi': Sending state 137.00000 with 0 decimals of accuracy
[07:21:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:21:21][V][json:058]: Size after shrink 68 bytes
[07:21:21][V][sensor:043]: 'gas RSSI': Received new state -86.000000
[07:21:21][D][sensor:094]: 'gas RSSI': Sending state -86.00000 dBm with 0 decimals of accuracy
[07:21:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:21:21][V][json:058]: Size after shrink 72 bytes
[07:21:21][V][sensor:043]: 'gas': Received new state 6457.629883
[07:21:21][D][sensor:094]: 'gas': Sending state 6457.62988 m³ with 3 decimals of accuracy
[07:21:21][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[07:21:21][V][json:058]: Size after shrink 72 bytes
[07:21:21][W][component:214]: Component wmbus took a long time for an operation (0.15 s).
[07:21:21][W][component:215]: Components should block for at most 20-30ms.
[07:21:55][D][sntp:078]: Synchronized time: 2023-11-12 07:21:55
To według mnie wygląda to tak, że jak dostaje wiadomość, której nie może zdekodować się wysypuje - na szczęście tylko dla dodanego sensora - pozostałe liczniki z eteru pomija (prawidłowo).
Cały log z esp za 24h - jako zip bo forum nie pozwala dodać jako log.
wodomierz_esp.zip (20,9 KB)
Edit:
Dzisiaj taka sama sytuacja licznik gdy wyśle tą ramkę:
[16:32:00][I][wmbus:084]: Using driver 'unismart' for ID [0x00002652] RSSI: -80 dBm LQI: 138 Mode: T1 T: 0E47B8055226000001038A50000080 (15)
Wygląda to tak jakby zerwane zostawało połączenie do HA - wartość zapisana do bazy jest pewnie niepoprawna i wysypuje się.
Zmienne z tego esp przyjmują stan nieznany (tak samo jak po starcie), a że ten licznik nadaje stosunkowo rzadko gdy nie zmienia mu się wskazanie to można zobaczyć dziurę w danych.
[16:32:00][I][wmbus:084]: Using driver ‘unismart’ for ID [0x00002652] RSSI: -80 dBm LQI: 138 Mode: T1 T: 0E47B8055226000001038A50000080 (15)
[16:32:00][E][wmbus:311]: CI unknown
[16:32:34][D][api:102]: Accepted 192.168.0.143
[16:32:34][V][api.connection:1032]: Hello from client: ‘Home Assistant 2023.11.2’ | 192.168.0.143 | API Version 1.9
[16:32:34][D][api.connection:1050]: Home Assistant 2023.11.2 (192.168.0.143): Connected successfully
[16:33:02][I][wmbus:084]: Using driver ‘apator162’ for ID [0x06335627] RSSI: -50 dBm LQI: 128 Mode: T1 T: 3E4401062756330605077ABA0030852F59861716F3855C450FF89EB715F0DF95248BF5A00BE6F2A740930305BC3FDBADD03FFFD79424F117E2199588047D45 (63)
[16:33:02][D][wmbus:090]: Decrypted T : 3E4401062756330605077ABA0030852F2F0F208D2B97180200432600841569EB626CEB042A0000106008000071013100000000000000A0C7FFB704FFFF56CE (63)
[16:33:02][V][sensor:043]: ‘lqi’: Received new state 128.000000
[16:33:02][D][sensor:094]: ‘lqi’: Sending state 128.00000 with 0 decimals of accuracy
[16:33:02][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[16:33:02][V][json:058]: Size after shrink 64 bytes
[16:33:02][V][sensor:043]: ‘RSSI’: Received new state -50.000000
[16:33:02][D][sensor:094]: ‘RSSI’: Sending state -50.00000 dBm with 0 decimals of accuracy
[16:33:02][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[16:33:02][V][json:058]: Size after shrink 68 bytes
[16:33:02][V][sensor:043]: ‘water’: Received new state 2.144000
[16:33:02][D][sensor:094]: ‘water’: Sending state 2.14400 m³ with 3 decimals of accuracy
[16:33:02][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[16:33:02][V][json:058]: Size after shrink 72 bytes
[16:33:02][W][component:214]: Component wmbus took a long time for an operation (0.14 s).
[16:33:02][W][component:215]: Components should block for at most 20-30ms.