Komponent wM-Bus do ESPHome (SzczepanLeon) wersja 3.x - wątek ogólny

Nie mam pojęcia, na razie nic nie mam (tylko dowód że się da).

A więc. Zlutowałem Wemos D1 mini z płytka c1101 od @_Szczepan .
Wgrałem yaml na esp:

esphome:
  name: wmbus
  friendly_name: wmbus

esp8266:
  board: d1_mini

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxx"

ota:
  password: "xxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Wmbus Fallback Hotspot"
    password: "xxx"

captive_portal:
time:
  - platform: sntp
    id: time_sntp

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

wmbus:
  mosi_pin: D7
  miso_pin: D6
  clk_pin:  D5
  cs_pin:   D8
  gdo0_pin: D1
  gdo2_pin: D2

  led_pin: D0
  led_blink_time: "1s"

  clients:
    - name: "wmbusmeters"
      ip_address: "10.0.0.1"
      port: 7227

sensor:
  - platform: wmbus
    meter_id: 0x1782177
    type: apator162
    key: "00000000000000000000000000000000"
    lqi:
      name: "My lqi"
    rssi:
      name: "My RSSI"
    total_water_m3:
      name: "My cold water"
  

logi mam takie:

INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/wmbus.yaml...
INFO Detected timezone 'Europe/Warsaw'
INFO Starting log output from 192.168.0.196 using esphome API
INFO Successfully connected to wmbus @ 192.168.0.196 in 0.012s
INFO Successful handshake with wmbus @ 192.168.0.196 in 2.732s
[12:45:39][I][app:102]: ESPHome version 2024.3.1 compiled on Mar 29 2024, 12:37:56
[12:45:39][C][wifi:580]: WiFi:
[12:45:39][C][wifi:408]:   Local MAC: 08:3A:8D:D0:2F:2D
[12:45:39][C][wifi:413]:   SSID: 'TP-LINK_A9C28D'[redacted]
[12:45:39][C][wifi:416]:   IP Address: 192.168.0.196
[12:45:39][C][wifi:419]:   BSSID: 5C:A6:E6:25:D5:E4[redacted]
[12:45:39][C][wifi:421]:   Hostname: 'wmbus'
[12:45:39][C][wifi:423]:   Signal strength: -65 dB ▂▄▆█
[12:45:39][C][wifi:427]:   Channel: 6
[12:45:39][C][wifi:428]:   Subnet: 255.255.255.0
[12:45:39][C][wifi:429]:   Gateway: 192.168.0.1
[12:45:39][C][wifi:430]:   DNS1: 192.168.0.1
[12:45:39][C][wifi:431]:   DNS2: 192.168.0.1
[12:45:39][C][logger:166]: Logger:
[12:45:39][C][logger:167]:   Level: DEBUG
[12:45:39][C][logger:169]:   Log Baud Rate: 115200
[12:45:39][C][logger:170]:   Hardware UART: UART0
[12:45:39][C][captive_portal:088]: Captive Portal:
[12:45:39][C][sntp:055]: SNTP Time:
[12:45:39][C][sntp:056]:   Server 1: '0.pool.ntp.org'
[12:45:39][C][sntp:057]:   Server 2: '1.pool.ntp.org'
[12:45:39][C][sntp:058]:   Server 3: '2.pool.ntp.org'
[12:45:39][C][sntp:059]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[12:45:39][C][mdns:115]: mDNS:
[12:45:39][C][mdns:116]:   Hostname: wmbus
[12:45:39][C][ota:096]: Over-The-Air Updates:
[12:45:39][C][ota:097]:   Address: wmbus.local:8266
[12:45:39][C][ota:100]:   Using Password.
[12:45:39][C][ota:103]:   OTA version: 2.
[12:45:39][C][api:139]: API Server:
[12:45:39][C][api:140]:   Address: wmbus.local:6053
[12:45:39][C][api:142]:   Using noise encryption: YES
[12:45:39][C][wmbus:372]: wM-Bus v3.2.1:
[12:45:39][C][wmbus:374]:   Clients:
[12:45:39][C][wmbus:376]:     wmbusmeters: 10.0.0.1:7227 TCP [rtl-wmbus]
[12:45:39][C][wmbus:385]:   LED:
[12:45:39][C][wmbus:386]:     Pin: GPIO16
[12:45:39][C][wmbus:387]:     Duration: 1000 ms
[12:45:39][C][wmbus:389]:   CC1101 frequency: 868.950 MHz
[12:45:39][C][wmbus:390]:   CC1101 SPI bus:
[12:45:39][C][wmbus:391]:     MOSI Pin: GPIO13
[12:45:39][C][wmbus:392]:     MISO Pin: GPIO12
[12:45:39][C][wmbus:393]:     CLK Pin:  GPIO14
[12:45:39][C][wmbus:394]:     CS Pin:   GPIO15
[12:45:39][C][wmbus:395]:     GDO0 Pin: GPIO5
[12:45:39][C][wmbus:396]:     GDO2 Pin: GPIO4
[12:45:39][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:45:39][C][wmbus:421]:   Meter:
[12:45:39][C][wmbus:422]:     ID: 24650103 [0x01782177]
[12:45:39][C][wmbus:423]:     Type: apator162
[12:45:39][C][wmbus:424]:     Mode: T1
[12:45:39][C][wmbus:425]:     Key: '00000000000000000000000000000000'
[12:45:39][C][wmbus:427]:     Sensor '0x1782177 My lqi'
[12:45:39][C][wmbus:427]:       Device Class: 'signal_strength'
[12:45:39][C][wmbus:427]:       State Class: 'measurement'
[12:45:39][C][wmbus:427]:       Unit of Measurement: ''
[12:45:39][C][wmbus:427]:       Accuracy Decimals: 0
[12:45:39][C][wmbus:427]:     Sensor '0x1782177 My RSSI'
[12:45:39][C][wmbus:427]:       Device Class: 'signal_strength'
[12:45:39][C][wmbus:427]:       State Class: 'measurement'
[12:45:39][C][wmbus:427]:       Unit of Measurement: 'dBm'
[12:45:39][C][wmbus:427]:       Accuracy Decimals: 0
[12:45:39][C][wmbus:427]:     Sensor '0x1782177 My cold water'
[12:45:39][C][wmbus:427]:       Device Class: 'water'
[12:45:39][C][wmbus:427]:       State Class: 'total_increasing'
[12:45:39][C][wmbus:427]:       Unit of Measurement: 'm³'
[12:45:39][C][wmbus:427]:       Accuracy Decimals: 3
[12:45:39][C][wmbus:427]:       Icon: 'mdi:water'
[12:46:15][D][mbus:034]: Processing T1 A frame
[12:47:24][D][mbus:034]: Processing T1 A frame

nakładka Apator 16-2

i dalej nie wiem jak to ogarnąć.

Skąd wiesz, że

standardowe uruchomienie to 2 etapy

  1. uruchomienie sprzętu bez definiowania sensora i złapanie półsurowych telegramów w logach (oraz ewentualnie ich zdekodowanie na https://wmbusmeters.org/)
  2. dopisanie sekcji sensor po upewnieniu się, że znamy pasujący ID licznika/nakładki

Nie wiem czy dla tego modelu nakładki obecnie jest w ogóle potrzebny klucz (w sytuacji, gdy jest zerami, bo jeśli jest inny, to trzeba go podać).

bez sekcji

- sensor:

mam to samo w logach

[13:34:48][D][mbus:034]: Processing T1 A frame
[13:35:19][D][mbus:034]: Processing T1 A frame

Jak uzyję dongla usb DVBT i integracji Wmbusmeters to odczytuje mi stan bez problemu.

Received telegram from: 01782177
          manufacturer: (APA) Apator, Poland (0x601)
                  type: Water meter (0x07) encrypted
                   ver: 0x05
                device: rtlwmbus[00000001]
                  rssi: 127 dBm
                driver: apator162

jednak chcialbym korzystac z cc1101

a czy 01782177= 0x1782177?

Wpadłem na to i wersję z 0 też testowałem.
Ale dlaczego bez zdefiniowanych senatorów nic nie mam?

Dobre pytanie, może zwiększ poziom logowania na jakiś verbose czy very_verbose

Zera na poczatku nie maja wplywu na dzialanie!! To jest urban-legend z innego kodu/integracji.

Daj VERBOSE i zapodaj logi. Jak daleko masz do wodomierza?

30cm

INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/wmbus.yaml...
INFO Detected timezone 'Europe/Warsaw'
INFO Starting log output from 192.168.0.196 using esphome API
INFO Successfully connected to wmbus @ 192.168.0.196 in 0.011s
INFO Successful handshake with wmbus @ 192.168.0.196 in 2.777s
[14:46:27][I][app:102]: ESPHome version 2024.3.1 compiled on Mar 29 2024, 14:43:13
[14:46:27][C][wifi:580]: WiFi:
[14:46:27][C][wifi:408]:   Local MAC: 08:3A:8D:D0:2F:2D
[14:46:27][C][wifi:413]:   SSID: [redacted]
[14:46:27][C][wifi:416]:   IP Address: 192.168.0.196
[14:46:27][C][wifi:419]:   BSSID: [redacted]
[14:46:27][C][wifi:421]:   Hostname: 'wmbus'
[14:46:27][C][wifi:423]:   Signal strength: -52 dB ▂▄▆█
[14:46:27][V][wifi:425]:   Priority: -7.0
[14:46:27][C][wifi:427]:   Channel: 6
[14:46:27][C][wifi:428]:   Subnet: 255.255.255.0
[14:46:27][C][wifi:429]:   Gateway: 192.168.0.1
[14:46:27][C][wifi:430]:   DNS1: 192.168.0.1
[14:46:27][C][wifi:431]:   DNS2: 192.168.0.1
[14:46:27][C][logger:166]: Logger:
[14:46:27][C][logger:167]:   Level: VERBOSE
[14:46:27][C][logger:169]:   Log Baud Rate: 115200
[14:46:27][C][logger:170]:   Hardware UART: UART0
[14:46:27][C][captive_portal:088]: Captive Portal:
[14:46:27][C][sntp:055]: SNTP Time:
[14:46:27][C][sntp:056]:   Server 1: '0.pool.ntp.org'
[14:46:27][C][sntp:057]:   Server 2: '1.pool.ntp.org'
[14:46:27][C][sntp:058]:   Server 3: '2.pool.ntp.org'
[14:46:27][C][sntp:059]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[14:46:27][C][mdns:115]: mDNS:
[14:46:27][C][mdns:116]:   Hostname: wmbus
[14:46:27][V][mdns:117]:   Services:
[14:46:27][V][mdns:119]:   - _esphomelib, _tcp, 6053
[14:46:27][V][mdns:121]:     TXT: friendly_name = wmbus
[14:46:27][V][mdns:121]:     TXT: version = 2024.3.1
[14:46:27][V][mdns:121]:     TXT: mac = 083a8dd02f2d
[14:46:27][V][mdns:121]:     TXT: platform = ESP8266
[14:46:27][V][mdns:121]:     TXT: board = d1_mini
[14:46:27][V][mdns:121]:     TXT: network = wifi
[14:46:27][V][mdns:121]:     TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[14:46:27][C][ota:096]: Over-The-Air Updates:
[14:46:27][C][ota:097]:   Address: wmbus.local:8266
[14:46:27][C][ota:100]:   Using Password.
[14:46:27][C][ota:103]:   OTA version: 2.
[14:46:27][C][api:139]: API Server:
[14:46:27][C][api:140]:   Address: wmbus.local:6053
[14:46:27][C][api:142]:   Using noise encryption: YES
[14:46:27][C][wmbus:372]: wM-Bus v3.2.1:
[14:46:27][C][wmbus:374]:   Clients:
[14:46:27][C][wmbus:376]:     wmbusmeters: 10.0.0.1:7227 TCP [rtl-wmbus]
[14:46:27][C][wmbus:389]:   CC1101 frequency: 868.950 MHz
[14:46:27][C][wmbus:390]:   CC1101 SPI bus:
[14:46:27][C][wmbus:391]:     MOSI Pin: GPIO13
[14:46:27][C][wmbus:392]:     MISO Pin: GPIO12
[14:46:27][C][wmbus:393]:     CLK Pin:  GPIO14
[14:46:27][C][wmbus:394]:     CS Pin:   GPIO15
[14:46:27][C][wmbus:395]:     GDO0 Pin: GPIO5
[14:46:27][C][wmbus:396]:     GDO2 Pin: GPIO4
[14:46:27][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
[14:47:05][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -33 dBm LQI: 128
[14:47:05][D][mbus:034]: Processing T1 A frame
[14:47:05][V][mbus:045]: Frame: 6B271C58D59A68E70B95358D599593C5C6AC4E696989D079A02BB32E1CA967C2D578D4D1CE7ACCC4BE3752FC045631CF0F1786907480AE68DC0CB131432D5F247009B4271C58D59A68E70B95358D599593C5C6AC4E56596696B193A92E66B199D578D4D1CE7ACCC4BE3752FC045631CF0F1786907480AE68DC0CB131432D5F247009B4271C58D59A68E70B95358D599593C5C6AC4E56596696B193A92E66B199637166399A58B59672726D29FC045631CF0F1786907480AE68DC0CB131432D (191) [RAW]
[14:47:05][V][3of6:083]: Decode 3 out of 6 failed..
[14:49:33][I][ota:117]: Boot seems successful, resetting boot loop counter.
[14:50:08][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -20 dBm LQI: 128
[14:50:08][D][mbus:034]: Processing T1 A frame
[14:50:08][V][mbus:045]: Frame: 6B271C58D59A4D338D4EC58D599593935AA44481CEED004FEC7CE3D51EBAB794B9665B2716C69CA372C9663992E6C6396999A7324F265C2D364D4CE34E374565B264D5271C58D59A4D338D4EC58D59959354D34E62E3596696B193D51EBAB794B9665B2716C69CA372C9663992E6C6396999A7324F265C2D364D4CE34E374565B264D5271C58D59A4D338D4EC58D59959354D34E62E3596696B193A970E9ACB168F19A9D2C2C9718A372C9663992E6C6396999A7324F265C2D364D4CE34E37 (191) [RAW]
[14:50:08][V][3of6:083]: Decode 3 out of 6 failed..
[14:50:20][V][rxLoop:167]: Have 120 bytes from CC1101 Rx, RSSI: -86 dBm LQI: 255
[14:50:20][D][mbus:034]: Processing T1 A frame
[14:50:20][V][mbus:045]: Frame: 7199A5C8B0902C032DA53E5BB3EF6F457F7FFC37F999C966A6B162E94E595959C3A93999B4732599C5A4E96594CEC7135964DB16B0E8D9B2597196C65366C5938D593799A5C8B0902C032DA53E5BB3EF6F457F3FFE0FFFD1FFF17FF84E595959C3A93999B4732599C5A4E96594CEC7135964DB16B0E8D9B2 (120) [RAW]
[14:50:20][V][3of6:083]: Decode 3 out of 6 failed..

moze problem jest w pinologi i zlutowaniu tego w calosc?

tutaj Very_verbose

INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/wmbus.yaml...
INFO Detected timezone 'Europe/Warsaw'
INFO Starting log output from 192.168.0.196 using esphome API
INFO Successfully connected to wmbus @ 192.168.0.196 in 0.014s
INFO Successful handshake with wmbus @ 192.168.0.196 in 2.785s
[15:01:28][I][app:102]: ESPHome version 2024.3.1 compiled on Mar 29 2024, 14:59:24
[15:01:28][C][wifi:580]: WiFi:
[15:01:28][C][wifi:408]:   Local MAC: 08:3A:8D:D0:2F:2D
[15:01:28][C][wifi:413]:   SSID: [redacted]
[15:01:28][C][wifi:416]:   IP Address: 192.168.0.196
[15:01:28][C][wifi:419]:   BSSID: [redacted]
[15:01:28][C][wifi:421]:   Hostname: 'wmbus'
[15:01:28][C][wifi:423]:   Signal strength: -63 dB ▂▄▆█
[15:01:28][V][wifi:425]:   Priority: 0.0
[15:01:28][C][wifi:427]:   Channel: 6
[15:01:28][C][wifi:428]:   Subnet: 255.255.255.0
[15:01:28][C][wifi:429]:   Gateway: 192.168.0.1
[15:01:28][C][wifi:430]:   DNS1: 192.168.0.1
[15:01:28][C][wifi:431]:   DNS2: 192.168.0.1
[15:01:28][C][logger:166]: Logger:
[15:01:28][C][logger:167]:   Level: VERY_VERBOSE
[15:01:28][C][logger:169]:   Log Baud Rate: 115200
[15:01:28][C][logger:170]:   Hardware UART: UART0
[15:01:28][C][captive_portal:088]: Captive Portal:
[15:01:28][C][sntp:055]: SNTP Time:
[15:01:28][C][sntp:056]:   Server 1: '0.pool.ntp.org'
[15:01:28][C][sntp:057]:   Server 2: '1.pool.ntp.org'
[15:01:28][C][sntp:058]:   Server 3: '2.pool.ntp.org'
[15:01:28][C][sntp:059]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[15:01:28][C][mdns:115]: mDNS:
[15:01:28][C][mdns:116]:   Hostname: wmbus
[15:01:28][V][mdns:117]:   Services:
[15:01:28][V][mdns:119]:   - _esphomelib, _tcp, 6053
[15:01:28][V][mdns:121]:     TXT: friendly_name = wmbus
[15:01:28][V][mdns:121]:     TXT: version = 2024.3.1
[15:01:28][V][mdns:121]:     TXT: mac = 083a8dd02f2d
[15:01:28][V][mdns:121]:     TXT: platform = ESP8266
[15:01:28][V][mdns:121]:     TXT: board = d1_mini
[15:01:28][V][mdns:121]:     TXT: network = wifi
[15:01:28][V][mdns:121]:     TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[15:01:28][C][ota:096]: Over-The-Air Updates:
[15:01:28][C][ota:097]:   Address: wmbus.local:8266
[15:01:28][C][ota:100]:   Using Password.
[15:01:28][C][ota:103]:   OTA version: 2.
[15:01:28][C][api:139]: API Server:
[15:01:28][C][api:140]:   Address: wmbus.local:6053
[15:01:28][C][api:142]:   Using noise encryption: YES
[15:01:28][C][wmbus:372]: wM-Bus v3.2.1:
[15:01:28][C][wmbus:374]:   Clients:
[15:01:28][C][wmbus:376]:     wmbusmeters: 10.0.0.1:7227 TCP [rtl-wmbus]
[15:01:28][C][wmbus:389]:   CC1101 frequency: 868.950 MHz
[15:01:28][C][wmbus:390]:   CC1101 SPI bus:
[15:01:28][C][wmbus:391]:     MOSI Pin: GPIO13
[15:01:28][C][wmbus:392]:     MISO Pin: GPIO12
[15:01:28][C][wmbus:393]:     CLK Pin:  GPIO14
[15:01:28][C][wmbus:394]:     CS Pin:   GPIO15
[15:01:28][C][wmbus:395]:     GDO0 Pin: GPIO5
[15:01:28][C][wmbus:396]:     GDO2 Pin: GPIO4
[15:01:28][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
[15:01:36][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=4294964144 (now=56848)
[15:01:39][VV][api.service:576]: on_ping_request: PingRequest {}
[15:01:39][VV][api.service:043]: send_ping_response: PingResponse {}
[15:01:41][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -35 dBm LQI: 128
[15:01:41][D][mbus:034]: Processing T1 A frame
[15:01:41][V][mbus:045]: Frame: 6B271C58D59A68E70B95358D5995939368A45B1A6E87694990F76B7BD7761A88281655EC3AB0938B4A8D3EF032D1A5D8E1561C36F796E60D85B8DE0251D40A46BE20271C58D59A68E70B95358D599593C5C6AC4E6963596696B1937BD7761A88281655EC3AB0938B4A8D3EF032D1A5D8E1561C36F796E60D85B8DE0251D40A46BE20271C58D59A68E70B95358D599593C5C6AC4E6963596696B1938D2CE8CD2DA35C971C535366938B4A8D3EF032D1A5D8E1561C36F796E60D85B8DE0251D4 (191) [RAW]
[15:01:41][V][3of6:083]: Decode 3 out of 6 failed..
[15:02:08][VV][api.service:576]: on_ping_request: PingRequest {}
[15:02:08][VV][api.service:043]: send_ping_response: PingResponse {}
[15:02:19][VV][api.service:576]: on_ping_request: PingRequest {}
[15:02:19][VV][api.service:043]: send_ping_response: PingResponse {}
[15:02:36][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=56848 (now=116848)
[15:02:59][VV][api.service:576]: on_ping_request: PingRequest {}
[15:02:59][VV][api.service:043]: send_ping_response: PingResponse {}
[15:03:08][VV][api.connection:132]: Sending keepalive PING...
[15:03:08][VV][api.service:037]: send_ping_request: PingRequest {}
[15:03:08][VV][api.service:585]: on_ping_response: PingResponse {}
[15:03:15][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -25 dBm LQI: 128
[15:03:15][D][mbus:034]: Processing T1 A frame
[15:03:15][V][mbus:045]: Frame: 6B271C58D59A4D338D4EC58D599593935A7C4746E22012BF6E6F843751E4A47A53B7AFCD2CB90DA3012D85F1C8DA69D23D2CD2564E8CBB1971A8D658D8E6D2555C9695271C58D59A4D338D4EC58D59959354D34E6719596696B1963751E4A47A53B7AFCD2CB90DA3012D85F1C8DA69D23D2CD2564E8CBB1971A8D658D8E6D2555C9695271C58D59A4D338D4EC58D59959354D34E6719596696B196B25A9C562F464E3742E6E670D7A3012D85F1C8DA69D23D2CD2564E8CBB1971A8D658D8E6 (191) [RAW]
[15:03:15][V][3of6:083]: Decode 3 out of 6 failed..
[15:03:26][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -42 dBm LQI: 128
[15:03:26][D][mbus:034]: Processing T1 A frame
[15:03:26][V][mbus:045]: Frame: 6B271C58D59A68E70B95358D59959393C58330D59FFFDFAFE2AC100B7ED5B6E01074B2C9635964E638B671972A698F2671C59C636A6C9CD25A4B6A9C6C5A65672C2F1C271C58D59A68E70B95358D599593C6AC4E6974596696B19B1A7ED5B6E01074B2C9635964E638B671972A698F2671C59C636A6C9CD25A4B6A9C6C5A65672C2F1C271C58D59A68E70B95358D599593C6AC4E6974596696B19B1A9B468DC74B23A53A636394D4E638B671972A698F2671C59C636A6C9CD25A4B6A9C6C5A (191) [RAW]
[15:03:26][V][3of6:083]: Decode 3 out of 6 failed..
[15:03:36][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=116848 (now=176848)
[15:03:39][VV][api.service:576]: on_ping_request: PingRequest {}
[15:03:39][VV][api.service:043]: send_ping_response: PingResponse {}
[15:04:08][VV][api.service:576]: on_ping_request: PingRequest {}
[15:04:08][VV][api.service:043]: send_ping_response: PingResponse {}
[15:04:18][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -40 dBm LQI: 128
[15:04:18][D][mbus:034]: Processing T1 A frame
[15:04:18][V][mbus:045]: Frame: 6B271C58D59A68E70B95358D599593C5C6ACAC4E4EFF48AC309AC2E6B32A6C5A5356CAC8ECB298E972338D2D9CB1956C65D16974B31B1C5998F24CD672D1359723A5AB271C58D59A68E70B95358D599593C5C6AC6971596696B19C4E97476C5A5356CAC8ECB298E972338D2D9CB1956C65D16974B31B1C5998F24CD672D1359723A5AB271C58D59A68E70B95358D599593C5C6AC6971596696B19C4E974731CA6CB1A5C6B1B1969A6B6B2C338D2D9CB1956C65D16974B31B1C5998F24CD672 (191) [RAW]
[15:04:18][V][3of6:083]: Decode 3 out of 6 failed..
[15:04:19][VV][api.service:576]: on_ping_request: PingRequest {}
[15:04:19][VV][api.service:043]: send_ping_response: PingResponse {}
[15:04:36][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=176848 (now=236848)
[15:04:45][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -25 dBm LQI: 128

Jeszcze inaczej: 0x01782177

Wywal clients i dodaj sync_mode.

Dlaczego upieracie sie na to zero z przodu? To nie ma znaczenia. Wazne jest tylko 0x albo jego brak. Czyli inaczej HEX czy DEC

1 polubienie

Kiedyś jak testowałem i musialo w ID być 8 cyfr, inaczej nie czytał. Może sie zmieniło

Napewno nie na moim komponencie. On zawsze był zero-agnostyczny. :wink:

Nic to nie dało, logi wyglądają tak samo.

SPI wyglada ze jest dobrze podlaczone. Mozesz jeszcze spróbować zamienic miejscami GDO 0 i 2

[16:41:56][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=476929 (now=536929)
[16:41:58][VV][api.service:576]: on_ping_request: PingRequest {}
[16:41:58][VV][api.service:043]: send_ping_response: PingResponse {}
[16:42:01][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -40 dBm LQI: 128
[16:42:01][D][mbus:034]: Processing T1 A frame
[16:42:01][V][mbus:045]: Frame: 6B271C58D59A68E70B95358D599593C5C6AC4E6C9A596696B19CB4666D29653A5AC93959B0B4CD6A699A94E3B4D1659C9B44DC6567169B47268D665C2E6C743B22D665C66C9A96565A36ACC662D62D673466969A5A32E9C6671CD2C58EB29C6C2EC9B44EC7199A5599A6935C7133B26639638DAA72CA3A65D237169A68E6C742D99A38CDC53CA5CB44F18E6B294D6B1C5A9971D2335C96CCAC70D69C9B464B36C8F498BCAC356A5CD34B264E3C562CB98D4D92CB9635A665C58B73471364D5 (191) [RAW]
[16:42:01][VV][3of6:095]: Decode 3 out of 6 OK.
[16:42:01][V][mbus:052]: Frame: 6E440106624397010507D4687AE6006085EC5ACF57F6E79583716AA6922CC004AC745040AC4AB0543ADC2E305458AF500B68DA30304C5F660B3FDA44C8028FD838AC7845A905FF14472E5B9BB6FEEBF9CB40AABADC35ABB1D7E9EC7DBA8F70840F9DCB1498E84164AC5318BCA3E810F4CC8A7BD033A175339B0A54034C4751 (127) [with CRC]
[16:42:01][V][mbus:095]: Validating CRC for Block1
[16:42:01][V][crc:031]:     calculated: 0xD468, read: 0xD468
[16:42:01][V][mbus:115]: Validating CRC for Block2
[16:42:01][V][crc:031]:     calculated: 0x922C, read: 0x922C
[16:42:01][V][mbus:115]: Validating CRC for Block3
[16:42:01][V][crc:031]:     calculated: 0xAF50, read: 0xAF50
[16:42:01][V][mbus:115]: Validating CRC for Block4
[16:42:01][V][crc:031]:     calculated: 0x38AC, read: 0x38AC
[16:42:01][V][mbus:115]: Validating CRC for Block5
[16:42:01][V][crc:031]:     calculated: 0xAABA, read: 0xAABA
[16:42:01][V][mbus:115]: Validating CRC for Block6
[16:42:01][V][crc:031]:     calculated: 0x98E8, read: 0x98E8
[16:42:01][V][mbus:115]: Validating CRC for Block7
[16:42:01][V][crc:031]:     calculated: 0x7533, read: 0x7533
[16:42:01][V][mbus:115]: Validating CRC for Block8
[16:42:01][V][crc:031]:     calculated: 0x4751, read: 0x4751
[16:42:01][V][mbus:062]: Frame: 6E4401066243970105077AE6006085EC5ACF57F6E79583716AA6C004AC745040AC4AB0543ADC2E3054580B68DA30304C5F660B3FDA44C8028FD87845A905FF14472E5B9BB6FEEBF9CB40DC35ABB1D7E9EC7DBA8F70840F9DCB144164AC5318BCA3E810F4CC8A7BD033A19B0A54034C (111) [without CRC]
[16:42:01][VV][wmbus:061]: Have data from CC1101 ...
[16:42:01][D][wmbus:176]: Meter ID [0x01974362] RSSI: -40 dBm LQI: 128 Frame: T1 A not found in configuration T: 6E4401066243970105077AE6006085EC5ACF57F6E79583716AA6C004AC745040AC4AB0543ADC2E3054580B68DA30304C5F660B3FDA44C8028FD87845A905FF14472E5B9BB6FEEBF9CB40DC35ABB1D7E9EC7DBA8F70840F9DCB144164AC5318BCA3E810F4CC8A7BD033A19B0A54034C (111)
[16:42:01][W][component:232]: Component wmbus took a long time for an operation (212 ms).
[16:42:01][W][component:233]: Components should block for at most 30 ms.
[16:42:25][V][rxLoop:167]: Have 191 bytes from CC1101 Rx, RSSI: -38 dBm LQI: 128

No i GIT :wink: zadziałało.

"total_m3":186.579

to jak teraz skonfigurowac -sernsor:

https://wmbusmeters.org/analyze/6e4401067721780105077aaf0060851d39ce343c306a98d68615B837a6c79e36dB360f85782B05a504f4ddec2ddf390142e698f10148f7134a4905a07a84a9B4cee14c48BaB585d2e9299Be52f121a8df8dfd5eB9f2030299fcf52B916dfa1253d76da9B472854f5e0a15cf33395a4

bo podaje rozne kobinacje i mam

[17:25:02][D][mbus:034]: Processing T1 A frame
[17:25:02][D][wmbus:090]: Using driver 'apator162' for ID [0x01782177] RSSI: -36 dBm LQI: 128 Frame: T1 A T: 6E4401067721780105077AAF0060851D39CE343C306A98D68615B837A6C79E36DB360F85782B05A504F4DDEC2DDF390142E698F10148F7134A4905A07A84A9B4CEE14C48BAB585D2E9299BE52F121A8DF8DFD5EB9F2030299FCF52B916DFA1253D76DA9B472854F5E0A15CF33395A4 (111)
[17:25:02][D][wmbus:161]: Can't get value(s) from telegram for ID [0x01782177]

No ale w logu to ja widzę

a nie

są 2 nakładki
0x01974362 oraz 0x01782177
korzystać bede z 0x01782177