SzczepanLeon / esphome-components

127 stars 43 forks source link

Izar water meter - "Decode 3 out of 6 failed.." #110

Closed pwysock1-intel closed 2 months ago

pwysock1-intel commented 2 months ago

Hi, I'm facing with a problem to get readings from my water meter with Diehl Izar radio device. I can read it without any problems with wmbusmeters + rtlsdr device but cannot make it working with ESP8266+CC1101. I still get problem "Decode 3 out of 6 failed". And I also thing that received frame(s) are too long for some reason. I'm also surprised that the device reads frames so rarely - with my wmbusmeters+rtlsdr setup I can see regular frames from 5 devices every 8 seconds.

My configuration file:

esphome:
  name: water_meter

esp8266:
  board: d1_mini

# Enable logging
logger:
  level: VERBOSE

ota:
  password: ""

# Enable Home Assistant API
api:
  password: ""

wifi:
  ssid: "***"
  password: "***"

time:
  - platform: sntp
    id: time_sntp

external_components:
  - source: github://SzczepanLeon/esphome-components@main
    components: [ wmbus ]

wmbus:
  frequency: 868.95
  mosi_pin: GPIO13
  miso_pin: GPIO12
  clk_pin:  GPIO14
  cs_pin:   GPIO15
  gdo0_pin: GPIO5
  gdo2_pin: GPIO4   

sensor:
  - platform: wmbus
#    meter_id: 0
    mode: T1
    type: izar
    rssi:
      name: "My RSSI"
    total_water_m3:
      name: "My cold water"

web_server:
  port: 80
  version: 2

Part of captured log (in VERBOSE mode):

[12:26:36][C][wmbus:372]: wM-Bus v3.2.1:
[12:26:36][C][wmbus:389]:   CC1101 frequency: 868.950 MHz
[12:26:36][C][wmbus:390]:   CC1101 SPI bus:
[12:26:36][C][wmbus:391]:     MOSI Pin: GPIO13
[12:26:36][C][wmbus:392]:     MISO Pin: GPIO12
[12:26:36][C][wmbus:393]:     CLK Pin:  GPIO14
[12:26:36][C][wmbus:394]:     CS Pin:   GPIO15
[12:26:36][C][wmbus:395]:     GDO0 Pin: GPIO5
[12:26:36][C][wmbus:396]:     GDO2 Pin: GPIO4
[12:26:36][C][wmbus:403]:   Available drivers:  amiplus, apator08, apator162, apatoreitn, bmeters, c5isf, compact5, dme07, elf, evo868, fhkvdataiii, flowiq2200, hydrocalm3, hydrus, iperl, itron, izar, kamheat, mkradio3, mkradio4, mkradio4a, multical21, qheat, qwater, rfmtx1, sharky774, topaseskr, ultrimis, unismart, vario451
[12:26:36][C][wmbus:421]:   Meter:
[12:26:36][C][wmbus:422]:     ID: 0 [0x00000000]
[12:26:36][C][wmbus:423]:     Type: izar
[12:26:36][C][wmbus:424]:     Mode: T1
[12:26:36][C][wmbus:425]:     Key: ''
[12:26:36][C][wmbus:427]:     Sensor '0x00 My RSSI'
[12:26:36][C][wmbus:427]:       Device Class: 'signal_strength'
[12:26:36][C][wmbus:427]:       State Class: 'measurement'
[12:26:36][C][wmbus:427]:       Unit of Measurement: 'dBm'
[12:26:36][C][wmbus:427]:       Accuracy Decimals: 0
[12:26:36][C][wmbus:427]:     Sensor '0x00 My cold water'
[12:26:36][C][wmbus:427]:       Device Class: 'water'
[12:26:36][C][wmbus:427]:       State Class: 'total_increasing'
[12:26:36][C][wmbus:427]:       Unit of Measurement: 'm³'
[12:26:36][C][wmbus:427]:       Accuracy Decimals: 3
[12:26:36][C][wmbus:427]:       Icon: 'mdi:water'
[12:26:36][D][api:102]: Accepted 192.168.0.9
[12:26:37][V][api.connection:1302]: Hello from client: 'Home Assistant 2024.6.0' | 192.168.0.9 | API Version 1.10
[12:26:37][D][api.connection:1321]: Home Assistant 2024.6.0 (192.168.0.9): Connected successfully
[12:27:31][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:27:31][V][json:058]: Size after shrink 96 bytes
[12:27:31][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:27:31][V][json:058]: Size after shrink 140 bytes
[12:27:31][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:27:31][V][json:058]: Size after shrink 156 bytes
[12:28:10][V][rxLoop:167]: Have 141 bytes from CC1101 Rx, RSSI: -48 dBm LQI: 206
[12:28:10][D][mbus:034]: Processing T1 A frame
[12:28:10][V][mbus:045]: Frame: 64DC716F7345CD370B39C393479AD6FCD48338D596F6C53D95E4D6CE9EED1D36A1B6BA58E77B466248E5AC525A12E1404BF2B3F7D270588D110FCC31EB17111863CBF20C358D341E2D60F722D20691F9B0130E732D3361FA0E58BE3EBDF9AE9C6BFFCD1DB9C72350B5211623355940214462402927AC4E801303CE21031012F743A8C3AB964E9D328CE6059206 (141) [RAW]
[12:28:10][V][3of6:083]: Decode 3 out of 6 failed..
[12:28:53][V][rxLoop:167]: Have 45 bytes from CC1101 Rx, RSSI: -48 dBm LQI: 148
[12:28:53][D][mbus:034]: Processing T1 A frame
[12:28:53][V][mbus:045]: Frame: 36571C2D473446E9BE2CD38DD34D8D2B373498A74D19359634F4539F1A56C6829BD5699A69F35B3CDB192D9264 (45) [RAW]
[12:28:53][V][3of6:083]: Decode 3 out of 6 failed..
[12:31:24][I][ota:117]: Boot seems successful, resetting boot loop counter.
[12:33:09][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:33:09][V][json:058]: Size after shrink 96 bytes
[12:33:09][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:33:09][V][json:058]: Size after shrink 140 bytes
[12:33:09][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[12:33:09][V][json:058]: Size after shrink 156 bytes
[12:33:37][V][rxLoop:167]: Have 45 bytes from CC1101 Rx, RSSI: -50 dBm LQI: 144
[12:33:37][D][mbus:034]: Processing T1 A frame
[12:33:37][V][mbus:045]: Frame: 36571C3D67344DA99C2CD285D3458D9D9C74D8E2CD58759234B8CECB569D869D34C96694C86359B1395938D671 (45) [RAW]
[12:33:37][V][3of6:083]: Decode 3 out of 6 failed..
[12:34:55][D][sntp:079]: Synchronized time: 2024-07-10 12:34:55
[12:34:56][V][rxLoop:167]: Have 45 bytes from CC1101 Rx, RSSI: -47 dBm LQI: 148
[12:34:56][D][mbus:034]: Processing T1 A frame
[12:34:56][V][mbus:045]: Frame: 36571C2D47344E699C2CD38FC3458D6923B498E50D5935D634F653C9A6CE8DE68E4DA26EC5598E7349B1CF2393 (45) [RAW]
[12:34:56][V][3of6:083]: Decode 3 out of 6 failed..
[12:38:00][V][rxLoop:167]: Have 45 bytes from CC1101 Rx, RSSI: -75 dBm LQI: 136
[12:38:00][D][mbus:034]: Processing T1 A frame
[12:38:00][V][mbus:045]: Frame: 36571C2DE7344E599C2CD38F53458D32E8CD99E70D5AC536362CCE97158C5CF9716568AC88935CD2D956B79C4B (45) [RAW]
[12:38:00][V][3of6:083]: Decode 3 out of 6 failed..
[12:38:06][V][rxLoop:167]: Have 44 bytes from CC1101 Rx, RSSI: -53 dBm LQI: 230
[12:38:06][D][mbus:034]: Processing T1 A frame
[12:38:06][V][mbus:045]: Frame: 36C71C2D67344FA9BC6CD38DD2158D1D9C7198EB8C51359635B8CCB237268D8692D0D8D32EB533972969CB73 (44) [RAW]
[12:38:06][V][3of6:083]: Decode 3 out of 6 failed..
[12:40:35][V][rxLoop:167]: Have 54 bytes from CC1101 Rx, RSSI: -48 dBm LQI: 238
[12:40:35][D][mbus:034]: Processing T1 A frame
[12:40:35][V][mbus:045]: Frame: 37171C2D277CDEFBBC5DA7F9A68B1AC36E69B5CE1AB2EB2D616CA7936F1D3BCD1C9B67CDCC131CE6C262C64726C40EACC12E428E0E08 (54) [RAW]
[12:40:35][V][3of6:083]: Decode 3 out of 6 failed..
pwysock1-intel commented 2 months ago

The issue can be closed. I have prepared another setup ESP2866+CC1101 and that one works perfectly fine. I assume it is some hardware issue with the first setup.