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

Dzięki. Właśnie pierwsze co mi przyszło na myśl, to że muszę to oznaczyć jako blok. A że w menu był tylko ten cudzysłów no to go użyłem. Czasami na forach jest znacznik “CODE” ale tu go nie znalazłem. Potem jak dodałem posta, to się zastanawiałem, dlaczego u mnie to wygląda tak źle a u innych tak ładnie :wink:
Już poprawiłem za pomocą 3x`

1 polubienie

Dzięki Jurek!.
Skompilowało się i ramki idą.
Jednak podczas kompilacji były ostrzeżenia jak poniżej. Nie wiem, czy to istotne, czy zignorować:

Compiling .pioenvs/d1mini-rf868mhz/FrameworkArduino/Esp-frag.cpp.o
.piolibdeps/d1mini-rf868mhz/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::Reset()':
.piolibdeps/d1mini-rf868mhz/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:149:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  149 |   while(digitalRead(MISO_PIN));
      |   ^~~~~
.piolibdeps/d1mini-rf868mhz/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:150:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  150 |  digitalWrite(SS_PIN, HIGH);
      |  ^~~~~~~~~~~~
Compiling .pioenvs/d1mini-rf868mhz/FrameworkArduino/Esp-version.cpp.o
.piolibdeps/d1mini-rf868mhz/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::setPA(int)':
.piolibdeps/d1mini-rf868mhz/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:498:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
  498 | PA_TABLE[1] = a;
      | ~~~~~~~~~~~~^~~
Archiving .pioenvs/d1mini-rf868mhz/libf5a/libSPI.a

Widzę, że teraz pojawiło się to, czgo chciałem użyć a nie było (znaczy może było pod zębatką ale tam nie szukałem):

Super! To jest dla mnie intuicyjne!

Stare, jak… :wink:
Zobacz np. tu

Bardzo dziękuję za pomoc :slight_smile:

Cześć,
Czy ktoś odczytał Bmeter IWM-TX5 v18 ??
Kupiłem taki nowy i zaprogramowałe przez NFC ale nie moge odczytać wyników.

[19:02:06][D][mbus:035]: Received T1 A frame
[19:02:06][W][wmbus:088]: Selected driver bmeters doesn't exist, using 
[19:02:06][I][wmbus:104]: Unknown! [0x24351197] RSSI: -43dBm T: 4D44B4099711352418078C005B7A6C080000066D0002130A3B000C13550000000F0D08000000180B0A00000000000000000000000000000000000000000000000000000000000000000000000000 (78) T1 A
[19:02:06][W][wmbus:111]: Link modes not defined in driver Unknown!. Processing anyway.
[19:02:06][W][wmbus:119]: Can't find driver for T: 4D44B4099711352418078C005B7A6C080000066D0002130A3B000C13550000000F0D08000000180B0A00000000000000000000000000000000000000000000000000000000000000000000000000 (78)
[19:02:06][W][component:237]: Component wmbus took a long time for an operation (69 ms).
[19:02:06][W][component:238]: Components should block for at most 30 ms.

Było - poszukaj issue o kolejności wpisów w YAMLU.

btw
Tu jest watek o v3 a nie v4.

Witam serdecznie :slight_smile:
Próbuje odczytać dane z wodomierza APATOR Ultrimis


Hardware:
ESP8266 + cc1101 odległość od wodomierza 1m
moja konfiguracja .yaml to:

esphome:
  name: wodomierze
  friendly_name: wodomierze

esp8266:
  board: nodemcuv2

# Enable logging
logger:
  level: VERY_VERBOSE
# Enable Home Assistant API
api:
  encryption:
    key: "blpfBx0m3plPinsU1a6qqYgwx90KE+rsqH6gfch2BIc="

ota:
  - platform: esphome
    password: "ebbb3b8a3fbeda628cc3bbc3f6b95e5d"

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

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

captive_portal:


time:
  - platform: sntp
    id: time_sntp

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

wmbus:
  mosi_pin: GPIO13
  miso_pin: GPIO12
  clk_pin:  GPIO14
  cs_pin:   GPIO2
  gdo0_pin: GPIO5
  gdo2_pin: GPIO4

sensor:
  - platform: wmbus
    meter_id: 0x07258655
    type: apator162
    key: "00000000000000000000000000000000"
    lqi:
      name: "My garden lqi"
    rssi:
      name: "My garden RSSI"
    total_water_m3:
      name: "My garden water"
      
  - platform: wmbus
    meter_id: 0x80427254
    type: ultrimis
    mode: T1
    key: "00000000000000000000000000000000"
    lqi:
      name: "My main lqi"
    rssi:
      name: "My main RSSI"
    total_water_m3:
      name: "My maincold water"   
text_sensor:
  - platform: wmbus
    name: "Text debug wodomierz"

w powyższej konfiguracji mam 2 liczniki

  • apator162 z którego otrzymuje właściwe dane
  • APATOR Ultrimis (na zdjęciu powyżej) z którego nie mogę otrzymać poprawnych danych.
    Poniżej dane kompilacji oraz logi VERY_VERBOSE po uruchomieniu (ze względu na ograniczoną ilość znaków wyciąłem większość lini Compiling które nie raportowały błędów)
INFO ESPHome 2024.10.3
INFO Reading configuration /config/esphome/wodomierze.yaml...
INFO Detected timezone 'Europe/Warsaw'
INFO Generating C++ source...
INFO Compiling app...
Processing wodomierze (board: nodemcuv2; framework: arduino; platform: platformio/espressif8266@4.2.1)
--------------------------------------------------------------------------------
Removing unused dependencies...
Library Manager: Removing wmbus-drivers @ 0.0.0+20241115211615.sha.d4cd37f
INFO Removing wmbus-drivers @ 0.0.0+20241115211615.sha.d4cd37f
Library Manager: wmbus-drivers@0.0.0+20241115211615.sha.d4cd37f has been removed!
INFO wmbus-drivers@0.0.0+20241115211615.sha.d4cd37f has been removed!
Library Manager: Installing git+https://github.com/SzczepanLeon/wmbus-drivers#1.3.13
INFO Installing git+https://github.com/SzczepanLeon/wmbus-drivers#1.3.13
git version 2.39.5
Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-ki1mcb_o'...
Note: switching to 'c856f7d1eadb337ae3e6f59f3eb3ca652e371735'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Library Manager: wmbus-drivers@0.0.0+20241119150024.sha.c856f7d has been installed!
INFO wmbus-drivers@0.0.0+20241119150024.sha.c856f7d has been installed!
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.6
|-- SPI @ 1.0
|-- SmartRC-CC1101-Driver-Lib @ 2.5.7+sha.b8c6af4
|-- wmbus-drivers @ 0.0.0+20241119150024.sha.c856f7d
Compiling .pioenvs/wodomierze/libdcd/noise-c/protocol/util.c.o
Compiling .pioenvs/wodomierze/libf5a/SPI/SPI.cpp.o
Compiling .pioenvs/wodomierze/libcb8/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp.o
Archiving .pioenvs/wodomierze/libFrameworkArduinoVariant.a
Compiling .pioenvs/wodomierze/FrameworkArduino/Crypto.cpp.o
Archiving .pioenvs/wodomierze/libdcd/libnoise-c.a
Compiling .pioenvs/wodomierze/FrameworkArduino/Esp-frag.cpp.o
.piolibdeps/wodomierze/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::Reset()':
.piolibdeps/wodomierze/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:149:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  149 |   while(digitalRead(MISO_PIN));
      |   ^~~~~
.piolibdeps/wodomierze/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:150:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  150 |  digitalWrite(SS_PIN, HIGH);
      |  ^~~~~~~~~~~~
.piolibdeps/wodomierze/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp: In member function 'void ELECHOUSE_CC1101::setPA(int)':
.piolibdeps/wodomierze/SmartRC-CC1101-Driver-Lib/ELECHOUSE_CC1101_SRC_DRV.cpp:498:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
  498 | PA_TABLE[1] = a;
      | ~~~~~~~~~~~~^~~
Archiving .pioenvs/wodomierze/libf5a/libSPI.a
Compiling .pioenvs/wodomierze/FrameworkArduino/Esp-version.cpp.o
Compiling .pioenvs/wodomierze/FrameworkArduino/Esp.cpp.o
Archiving .pioenvs/wodomierze/libcb8/libSmartRC-CC1101-Driver-Lib.a
Compiling .pioenvs/wodomierze/FrameworkArduino/umm_malloc/umm_poison.c.o
Compiling .pioenvs/wodomierze/FrameworkArduino/wpa2_eap_patch.cpp.o
Archiving .pioenvs/wodomierze/libFrameworkArduino.a
Linking .pioenvs/wodomierze/firmware.elf
RAM:   [======    ]  55.4% (used 45352 bytes from 81920 bytes)
Flash: [======    ]  56.7% (used 591969 bytes from 1044464 bytes)
Building .pioenvs/wodomierze/firmware.bin
esp8266_copy_factory_bin([".pioenvs/wodomierze/firmware.bin"], [".pioenvs/wodomierze/firmware.elf"])
esp8266_copy_ota_bin([".pioenvs/wodomierze/firmware.bin"], [".pioenvs/wodomierze/firmware.elf"])
======================== [SUCCESS] Took 282.42 seconds ========================
INFO Successfully compiled program.
INFO Connecting to 192.168.2.96
INFO Uploading /data/build/wodomierze/.pioenvs/wodomierze/firmware.bin (596128 bytes)
INFO Compressed to 407169 bytes
Uploading: [============================================================] 100% Done...

INFO Upload took 4.81 seconds, waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.2.96 using esphome API
INFO Successfully connected to wodomierze @ 192.168.2.96 in 19.518s
INFO Successful handshake with wodomierze @ 192.168.2.96 in 2.904s
[15:05:39][I][app:100]: ESPHome version 2024.10.3 compiled on Nov 19 2024, 15:02:29
[15:05:39][C][wifi:600]: WiFi:
[15:05:39][C][wifi:428]:   Local MAC: 24:A1:60:23:C4:1F
[15:05:39][C][wifi:433]:   SSID: 'SZAKAL_ADAMSY'[redacted]
[15:05:39][C][wifi:436]:   IP Address: 192.168.2.96
[15:05:39][C][wifi:439]:   BSSID: 68:D7:9A:1A:B7:AE[redacted]
[15:05:39][C][wifi:441]:   Hostname: 'wodomierze'
[15:05:39][C][wifi:443]:   Signal strength: -63 dB ▂▄▆█
[15:05:39][V][wifi:445]:   Priority: 0.0
[15:05:39][C][wifi:447]:   Channel: 11
[15:05:39][C][wifi:448]:   Subnet: 255.255.255.0
[15:05:39][C][wifi:449]:   Gateway: 192.168.2.1
[15:05:39][C][wifi:450]:   DNS1: 8.8.8.8
[15:05:39][C][wifi:451]:   DNS2: 8.8.4.4
[15:05:39][C][logger:185]: Logger:
[15:05:39][C][logger:186]:   Level: VERY_VERBOSE
[15:05:39][C][logger:188]:   Log Baud Rate: 115200
[15:05:39][C][logger:189]:   Hardware UART: UART0
[15:05:39][C][captive_portal:089]: Captive Portal:
[15:05:39][C][sntp:048]: SNTP Time:
[15:05:39][C][sntp:049]:   Server 1: '0.pool.ntp.org'
[15:05:39][C][sntp:050]:   Server 2: '1.pool.ntp.org'
[15:05:39][C][sntp:051]:   Server 3: '2.pool.ntp.org'
[15:05:39][C][sntp:052]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[15:05:39][C][mdns:116]: mDNS:
[15:05:39][C][mdns:117]:   Hostname: wodomierze
[15:05:39][V][mdns:118]:   Services:
[15:05:39][V][mdns:120]:   - _esphomelib, _tcp, 6053
[15:05:39][V][mdns:122]:     TXT: friendly_name = wodomierze
[15:05:39][V][mdns:122]:     TXT: version = 2024.10.3
[15:05:39][V][mdns:122]:     TXT: mac = 24a16023c41f
[15:05:39][V][mdns:122]:     TXT: platform = ESP8266
[15:05:39][V][mdns:122]:     TXT: board = nodemcuv2
[15:05:39][V][mdns:122]:     TXT: network = wifi
[15:05:39][V][mdns:122]:     TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[15:05:39][C][esphome.ota:073]: Over-The-Air updates:
[15:05:39][C][esphome.ota:074]:   Address: wodomierze.local:8266
[15:05:39][C][esphome.ota:075]:   Version: 2
[15:05:39][C][esphome.ota:078]:   Password configured
[15:05:39][C][safe_mode:018]: Safe Mode:
[15:05:39][C][safe_mode:019]:   Boot considered successful after 60 seconds
[15:05:39][C][safe_mode:021]:   Invoke after 10 boot attempts
[15:05:39][C][safe_mode:022]:   Remain in safe mode for 300 seconds
[15:05:39][C][api:140]: API Server:
[15:05:39][C][api:141]:   Address: wodomierze.local:6053
[15:05:39][C][api:143]:   Using noise encryption: YES
[15:05:39][C][wmbus:372]: wM-Bus v3.2.3:
[15:05:39][C][wmbus:389]:   CC1101 frequency: 868.950 MHz
[15:05:39][C][wmbus:390]:   CC1101 SPI bus:
[15:05:39][C][wmbus:391]:     MOSI Pin: GPIO13
[15:05:39][C][wmbus:392]:     MISO Pin: GPIO12
[15:05:39][C][wmbus:393]:     CLK Pin:  GPIO14
[15:05:39][C][wmbus:394]:     CS Pin:   GPIO2
[15:05:39][C][wmbus:395]:     GDO0 Pin: GPIO5
[15:05:39][C][wmbus:396]:     GDO2 Pin: GPIO4
[15:05: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
[15:05:39][C][wmbus:421]:   Meter:
[15:05:39][C][wmbus:422]:     ID: 119899733 [0x07258655]
[15:05:39][C][wmbus:423]:     Type: apator162
[15:05:39][C][wmbus:424]:     Mode: T1
[15:05:39][C][wmbus:425]:     Key: '00000000000000000000000000000000'
[15:05:39][C][wmbus:427]:     Sensor '0x7258655 My garden lqi'
[15:05:39][C][wmbus:427]:       Device Class: 'signal_strength'
[15:05:39][C][wmbus:427]:       State Class: 'measurement'
[15:05:39][C][wmbus:427]:       Unit of Measurement: ''
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 0
[15:05:39][C][wmbus:427]:     Sensor '0x7258655 My garden RSSI'
[15:05:39][C][wmbus:427]:       Device Class: 'signal_strength'
[15:05:39][C][wmbus:427]:       State Class: 'measurement'
[15:05:39][C][wmbus:427]:       Unit of Measurement: 'dBm'
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 0
[15:05:39][C][wmbus:427]:     Sensor '0x7258655 My garden water'
[15:05:39][C][wmbus:427]:       Device Class: 'water'
[15:05:39][C][wmbus:427]:       State Class: 'total_increasing'
[15:05:39][C][wmbus:427]:       Unit of Measurement: 'm³'
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 3
[15:05:39][C][wmbus:427]:       Icon: 'mdi:water'
[15:05:39][C][wmbus:421]:   Meter:
[15:05:39][C][wmbus:422]:     ID: 2151838292 [0x80427254]
[15:05:39][C][wmbus:423]:     Type: ultrimis
[15:05:39][C][wmbus:424]:     Mode: T1
[15:05:39][C][wmbus:425]:     Key: '00000000000000000000000000000000'
[15:05:39][C][wmbus:427]:     Sensor '0x80427254 My main lqi'
[15:05:39][C][wmbus:427]:       Device Class: 'signal_strength'
[15:05:39][C][wmbus:427]:       State Class: 'measurement'
[15:05:39][C][wmbus:427]:       Unit of Measurement: ''
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 0
[15:05:39][C][wmbus:427]:     Sensor '0x80427254 My main RSSI'
[15:05:39][C][wmbus:427]:       Device Class: 'signal_strength'
[15:05:39][C][wmbus:427]:       State Class: 'measurement'
[15:05:39][C][wmbus:427]:       Unit of Measurement: 'dBm'
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 0
[15:05:39][C][wmbus:427]:     Sensor '0x80427254 My maincold water'
[15:05:39][C][wmbus:427]:       Device Class: 'water'
[15:05:39][C][wmbus:427]:       State Class: 'total_increasing'
[15:05:39][C][wmbus:427]:       Unit of Measurement: 'm³'
[15:05:39][C][wmbus:427]:       Accuracy Decimals: 3
[15:05:39][C][wmbus:427]:       Icon: 'mdi:water'
[15:05:39][C][wmbus:421]:   Meter:
[15:05:39][C][wmbus:422]:     ID: 2952790005 [0xAFFFFFF5]
[15:05:39][C][wmbus:423]:     Type: text
[15:05:39][C][wmbus:424]:     Mode: T1
[15:05:39][C][wmbus:425]:     Key: ''
[15:05:39][D][api:103]: Accepted 192.168.2.94
[15:05:39][VV][api.socket:696]: 192.168.2.94: Handshake complete!
[15:05:39][W][component:237]: Component api took a long time for an operation (297 ms).
[15:05:39][W][component:238]: Components should block for at most 30 ms.
[15:05:42][VV][api.service:661]: on_hello_request: HelloRequest {
  client_info: 'Home Assistant 2024.11.2'
  api_version_major: 1
  api_version_minor: 10
}
[15:05:42][V][api.connection:1427]: Hello from client: 'Home Assistant 2024.11.2' | 192.168.2.94 | API Version 1.10
[15:05:42][VV][api.service:013]: send_hello_response: HelloResponse {
  api_version_major: 1
  api_version_minor: 10
  server_info: 'wodomierze (esphome v2024.10.3)'
  name: 'wodomierze'
}
[15:05:42][VV][api.service:670]: on_connect_request: ConnectRequest {
  password: ''
}
[15:05:42][D][api.connection:1446]: Home Assistant 2024.11.2 (192.168.2.94): Connected successfully
[15:05:42][VV][api.service:019]: send_connect_response: ConnectResponse {
  invalid_password: NO
}
[15:05:42][VV][api.service:715]: on_device_info_request: DeviceInfoRequest {}
[15:05:42][VV][api.service:049]: send_device_info_response: DeviceInfoResponse {
  uses_password: NO
  name: 'wodomierze'
  mac_address: '24:A1:60:23:C4:1F'
  esphome_version: '2024.10.3'
  compilation_time: 'Nov 19 2024, 15:02:29'
  model: 'nodemcuv2'
  has_deep_sleep: NO
  project_name: ''
  project_version: ''
  webserver_port: 0
  legacy_bluetooth_proxy_version: 0
  bluetooth_proxy_feature_flags: 0
  manufacturer: 'Espressif'
  friendly_name: 'wodomierze'
  legacy_voice_assis
[15:05:42][VV][api.service:724]: on_list_entities_request: ListEntitiesRequest {}
[15:05:42][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x7258655_my_garden_lqi'
  key: 1802969047
  name: '0x7258655 My garden lqi'
  unique_id: 'wodomierzesensor0x7258655_my_garden_lqi'
  icon: ''
  unit_of_measurement: ''
  accuracy_decimals: 0
  force_update: NO
  device_class: 'signal_strength'
  state_class: STATE_CLASS_MEASUREMENT
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: NO
  entity_ca
[15:05:43][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x7258655_my_garden_rssi'
  key: 987714474
  name: '0x7258655 My garden RSSI'
  unique_id: 'wodomierzesensor0x7258655_my_garden_rssi'
  icon: ''
  unit_of_measurement: 'dBm'
  accuracy_decimals: 0
  force_update: NO
  device_class: 'signal_strength'
  state_class: STATE_CLASS_MEASUREMENT
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: NO
  enti
[15:05:43][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x7258655_my_garden_water'
  key: 2828270624
  name: '0x7258655 My garden water'
  unique_id: 'wodomierzesensor0x7258655_my_garden_water'
  icon: 'mdi:water'
  unit_of_measurement: 'm³'
  accuracy_decimals: 3
  force_update: NO
  device_class: 'water'
  state_class: STATE_CLASS_TOTAL_INCREASING
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: N
[15:05:43][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x80427254_my_main_lqi'
  key: 1553483427
  name: '0x80427254 My main lqi'
  unique_id: 'wodomierzesensor0x80427254_my_main_lqi'
  icon: ''
  unit_of_measurement: ''
  accuracy_decimals: 0
  force_update: NO
  device_class: 'signal_strength'
  state_class: STATE_CLASS_MEASUREMENT
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: NO
  entity_categ
[15:05:43][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x80427254_my_main_rssi'
  key: 3483474134
  name: '0x80427254 My main RSSI'
  unique_id: 'wodomierzesensor0x80427254_my_main_rssi'
  icon: ''
  unit_of_measurement: 'dBm'
  accuracy_decimals: 0
  force_update: NO
  device_class: 'signal_strength'
  state_class: STATE_CLASS_MEASUREMENT
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: NO
  entity
[15:05:43][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: '0x80427254_my_maincold_water'
  key: 1442378502
  name: '0x80427254 My maincold water'
  unique_id: 'wodomierzesensor0x80427254_my_maincold_water'
  icon: 'mdi:water'
  unit_of_measurement: 'm³'
  accuracy_decimals: 3
  force_update: NO
  device_class: 'water'
  state_class: STATE_CLASS_TOTAL_INCREASING
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_d
[15:05:43][VV][api.service:166]: send_list_entities_text_sensor_response: ListEntitiesTextSensorResponse {
  object_id: 'text_debug_wodomierz'
  key: 937705877
  name: 'Text debug wodomierz'
  unique_id: 'wodomierzetext_sensortext_debug_wodomierz'
  icon: ''
  disabled_by_default: NO
  entity_category: ENTITY_CATEGORY_NONE
  device_class: ''
}
[15:05:43][VV][api.service:055]: send_list_entities_done_response: ListEntitiesDoneResponse {}
[15:05:43][VV][api.service:733]: on_subscribe_states_request: SubscribeStatesRequest {}
[15:05:43][VV][api.service:795]: on_subscribe_homeassistant_services_request: SubscribeHomeassistantServicesRequest {}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 1802969047
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:822]: on_subscribe_home_assistant_states_request: SubscribeHomeAssistantStatesRequest {}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 987714474
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 2828270624
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 1553483427
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 3483474134
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 1442378502
  state: nan
  missing_state: YES
}
[15:05:43][VV][api.service:174]: send_text_sensor_state_response: TextSensorStateResponse {
  key: 937705877
  state: ''
  missing_state: YES
}
[15:05:51][V][rxLoop:167]: Have 110 bytes from CC1101 Rx, RSSI: -46 dBm LQI: 128
[15:05:51][D][mbus:034]: Processing T1 A frame
[15:05:51][V][mbus:045]: Frame: 2F271C58D59A659B1A39959359959371A59C4E6B325962D6B19972659D0DD0E98BD1935366C9537263598CE3964DCC5358D666B0E96CC719B45A62CE3719A5A4E95934E71998E8E3D1A59A67297171CA6C9539745A9B0D35666C34D732B2CB258F19723B1D1A6662CB99CB3199C5 (110) [RAW]
[15:05:51][VV][3of6:095]: Decode 3 out of 6 OK.
[15:05:51][V][mbus:052]: Frame: 3E44010655862507050746047A8E0030859E55C1C2A3C51758974A15B22074D7015A8298DDAC0A321DA9F2951245A2BBC6065E9D44F8979C0F811058114E8889BD9E2DC65A33A48DA4 (73) [with CRC]
[15:05:51][V][mbus:095]: Validating CRC for Block1
[15:05:51][V][crc:031]:     calculated: 0x4604, read: 0x4604
[15:05:51][V][mbus:115]: Validating CRC for Block2
[15:05:51][V][crc:031]:     calculated: 0xB220, read: 0xB220
[15:05:51][V][mbus:115]: Validating CRC for Block3
[15:05:51][V][crc:031]:     calculated: 0xA2BB, read: 0xA2BB
[15:05:51][V][mbus:115]: Validating CRC for Block4
[15:05:51][V][crc:031]:     calculated: 0xBD9E, read: 0xBD9E
[15:05:51][V][mbus:115]: Validating CRC for Block5
[15:05:51][V][crc:031]:     calculated: 0x8DA4, read: 0x8DA4
[15:05:51][V][mbus:062]: Frame: 3E4401065586250705077A8E0030859E55C1C2A3C51758974A1574D7015A8298DDAC0A321DA9F2951245C6065E9D44F8979C0F811058114E88892DC65A33A4 (63) [without CRC]
[15:05:51][VV][wmbus:061]: Have data from CC1101 ...
[15:05:51][D][wmbus:090]: Using driver 'apator162' for ID [0x07258655] RSSI: -46 dBm LQI: 128 Frame: T1 A T: 3E4401065586250705077A8E0030859E55C1C2A3C51758974A1574D7015A8298DDAC0A321DA9F2951245C6065E9D44F8979C0F811058114E88892DC65A33A4 (63)
[15:05:51][VV][wmbus:099]: Key defined, trying to decrypt telegram ...
[15:05:51][VV][utils:223]: (TPL)  CI: 7A  offset: 15
[15:05:51][VV][utils:224]: (TPL)  IV: 01065586250705078E8E8E8E8E8E8E8E
[15:05:51][VV][utils:229]: (TPL) KEY: 00000000000000000000000000000000 (16)
[15:05:51][VV][utils:252]: (TPL) AES CBC IV decrypting: 9E55C1C2A3C51758974A1574D7015A8298DDAC0A321DA9F2951245C6065E9D44F8979C0F811058114E88892DC65A33A4 (48)
[15:05:51][VV][utils:282]: (TPL) AES CBC IV  decrypted: 2F2F0FC4734B98020200434600810871190971190205000010F33200007101F42E000035210000A0F2936704FFFF2784 (48)
[15:05:51][V][utils:291]: 2F2F check after decrypting - OK
[15:05:51][D][wmbus:104]: Decrypted T : 3E4401065586250705077A8E0030852F2F0FC4734B98020200434600810871190971190205000010F33200007101F42E000035210000A0F2936704FFFF2784 (63)
[15:05:51][VV][drivers:035]: Value added to map
[15:05:51][V][sensor:043]: '0x7258655 My garden lqi': Received new state 128.000000
[15:05:51][D][sensor:093]: '0x7258655 My garden lqi': Sending state 128.00000  with 0 decimals of accuracy
[15:05:51][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 1802969047
  state: 128
  missing_state: NO
}
[15:05:51][V][sensor:043]: '0x7258655 My garden RSSI': Received new state -46.000000
[15:05:51][D][sensor:093]: '0x7258655 My garden RSSI': Sending state -46.00000 dBm with 0 decimals of accuracy
[15:05:51][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 987714474
  state: -46
  missing_state: NO
}
[15:05:51][V][wmbus:121]: Publishing 'total_water_m3' = 13.0430
[15:05:51][V][sensor:043]: '0x7258655 My garden water': Received new state 13.043000
[15:05:51][D][sensor:093]: '0x7258655 My garden water': Sending state 13.04300 m³ with 3 decimals of accuracy
[15:05:51][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 2828270624
  state: 13.043
  missing_state: NO
}
[15:05:51][W][component:237]: Component wmbus took a long time for an operation (310 ms).
[15:05:51][W][component:238]: Components should block for at most 30 ms.
[15:05:51][V][rxLoop:167]: Have 83 bytes from CC1101 Rx, RSSI: -42 dBm LQI: 128
[15:05:51][D][mbus:034]: Processing T1 A frame
[15:05:51][V][mbus:045]: Frame: 3B271C58D59A65C4CE70EB1658D35A372C694E659A5963965992E5B264DA4D358B5994DCB0E95C2CDC9A9653A58CD999B1C671B1A69CA6558BA5A6AC5A33A39A54F46564CBB259594E33593A54D698EC8EC72A (83) [RAW]
[15:05:51][VV][3of6:095]: Decode 3 out of 6 OK.
[15:05:51][V][mbus:052]: Frame: 2E4401065472428001161EDF7A06002005398A7677030574829431E69929B1A5845D8664F903F6680B2BA97C507389957B152970A2E2DE (55) [with CRC]
[15:05:51][V][mbus:095]: Validating CRC for Block1
[15:05:51][V][crc:031]:     calculated: 0x1EDF, read: 0x1EDF
[15:05:51][V][mbus:115]: Validating CRC for Block2
[15:05:51][V][crc:031]:     calculated: 0x9929, read: 0x9929
[15:05:51][V][mbus:115]: Validating CRC for Block3
[15:05:51][V][crc:031]:     calculated: 0x8995, read: 0x8995
[15:05:51][V][mbus:115]: Validating CRC for Block4
[15:05:51][V][crc:031]:     calculated: 0xE2DE, read: 0xE2DE
[15:05:51][V][mbus:062]: Frame: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47) [without CRC]
[15:05:51][VV][wmbus:061]: Have data from CC1101 ...
[15:05:51][D][wmbus:090]: Using driver 'ultrimis' for ID [0x80427254] RSSI: -42 dBm LQI: 128 Frame: T1 A T: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47)
[15:05:51][VV][wmbus:099]: Key defined, trying to decrypt telegram ...
[15:05:51][VV][utils:223]: (TPL)  CI: 7A  offset: 15
[15:05:51][VV][utils:224]: (TPL)  IV: 01065472428001160606060606060606
[15:05:51][VV][utils:229]: (TPL) KEY: 00000000000000000000000000000000 (16)
[15:05:51][VV][utils:252]: (TPL) AES CBC IV decrypting: 398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (32)
[15:05:51][VV][utils:282]: (TPL) AES CBC IV  decrypted: B89A8F2FD78888A0793EEA1988B1B464B730B5F736631B4019396BC44A6828EC (32)
[15:05:51][D][utils:294]: 2F2F check after decrypting  !!!
[15:05:51][VV][wmbus:298]: Decrypting TPL AES CBC IV failed!
[15:05:51][W][component:237]: Component wmbus took a long time for an operation (172 ms).
[15:05:51][W][component:238]: Components should block for at most 30 ms.
[15:06:03][V][rxLoop:167]: Have 83 bytes from CC1101 Rx, RSSI: -43 dBm LQI: 128
[15:06:03][D][mbus:034]: Processing T1 A frame
[15:06:03][V][mbus:045]: Frame: 3B271C58D59A65C4CE70EB1658D35A372C694E659A5963965992E5B264DA4D358B5994DCB0E95C2CDC9A9653A58CD999B1C671B1A69CA6558BA5A6AC5A33A39A54F46564CBB259594E33593A54D698EC8EC72A (83) [RAW]
[15:06:03][VV][3of6:095]: Decode 3 out of 6 OK.
[15:06:03][V][mbus:052]: Frame: 2E4401065472428001161EDF7A06002005398A7677030574829431E69929B1A5845D8664F903F6680B2BA97C507389957B152970A2E2DE (55) [with CRC]
[15:06:03][V][mbus:095]: Validating CRC for Block1
[15:06:03][V][crc:031]:     calculated: 0x1EDF, read: 0x1EDF
[15:06:03][V][mbus:115]: Validating CRC for Block2
[15:06:03][V][crc:031]:     calculated: 0x9929, read: 0x9929
[15:06:03][V][mbus:115]: Validating CRC for Block3
[15:06:03][V][crc:031]:     calculated: 0x8995, read: 0x8995
[15:06:03][V][mbus:115]: Validating CRC for Block4
[15:06:03][V][crc:031]:     calculated: 0xE2DE, read: 0xE2DE
[15:06:03][V][mbus:062]: Frame: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47) [without CRC]
[15:06:03][VV][wmbus:061]: Have data from CC1101 ...
[15:06:03][D][wmbus:090]: Using driver 'ultrimis' for ID [0x80427254] RSSI: -43 dBm LQI: 128 Frame: T1 A T: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47)
[15:06:03][VV][wmbus:099]: Key defined, trying to decrypt telegram ...
[15:06:03][VV][utils:223]: (TPL)  CI: 7A  offset: 15
[15:06:03][VV][utils:224]: (TPL)  IV: 01065472428001160606060606060606
[15:06:03][VV][utils:229]: (TPL) KEY: 00000000000000000000000000000000 (16)
[15:06:03][VV][utils:252]: (TPL) AES CBC IV decrypting: 398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (32)
[15:06:03][VV][utils:282]: (TPL) AES CBC IV  decrypted: B89A8F2FD78888A0793EEA1988B1B464B730B5F736631B4019396BC44A6828EC (32)
[15:06:03][D][utils:294]: 2F2F check after decrypting  !!!
[15:06:03][VV][wmbus:298]: Decrypting TPL AES CBC IV failed!
[15:06:03][W][component:237]: Component wmbus took a long time for an operation (172 ms).
[15:06:03][W][component:238]: Components should block for at most 30 ms.
[15:06:11][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=4294963319 (now=56023)
[15:06:15][V][rxLoop:167]: Have 83 bytes from CC1101 Rx, RSSI: -42 dBm LQI: 128
[15:06:15][D][mbus:034]: Processing T1 A frame
[15:06:15][V][mbus:045]: Frame: 3B271C58D59A65C4CE70EB1658D35A372C694E659A5963965992E5B264DA4D358B5994DCB0E95C2CDC9A9653A58CD999B1C671B1A69CA6558BA5A6AC5A33A39A54F46564CBB259594E33593A54D698EC8EC72A (83) [RAW]
[15:06:15][VV][3of6:095]: Decode 3 out of 6 OK.
[15:06:15][V][mbus:052]: Frame: 2E4401065472428001161EDF7A06002005398A7677030574829431E69929B1A5845D8664F903F6680B2BA97C507389957B152970A2E2DE (55) [with CRC]
[15:06:15][V][mbus:095]: Validating CRC for Block1
[15:06:15][V][crc:031]:     calculated: 0x1EDF, read: 0x1EDF
[15:06:15][V][mbus:115]: Validating CRC for Block2
[15:06:15][V][crc:031]:     calculated: 0x9929, read: 0x9929
[15:06:15][V][mbus:115]: Validating CRC for Block3
[15:06:15][V][crc:031]:     calculated: 0x8995, read: 0x8995
[15:06:15][V][mbus:115]: Validating CRC for Block4
[15:06:15][V][crc:031]:     calculated: 0xE2DE, read: 0xE2DE
[15:06:15][V][mbus:062]: Frame: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47) [without CRC]
[15:06:15][VV][wmbus:061]: Have data from CC1101 ...
[15:06:15][D][wmbus:090]: Using driver 'ultrimis' for ID [0x80427254] RSSI: -42 dBm LQI: 128 Frame: T1 A T: 2E4401065472428001167A06002005398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (47)
[15:06:15][VV][wmbus:099]: Key defined, trying to decrypt telegram ...
[15:06:15][VV][utils:223]: (TPL)  CI: 7A  offset: 15
[15:06:15][VV][utils:224]: (TPL)  IV: 01065472428001160606060606060606
[15:06:15][VV][utils:229]: (TPL) KEY: 00000000000000000000000000000000 (16)
[15:06:15][VV][utils:252]: (TPL) AES CBC IV decrypting: 398A7677030574829431E6B1A5845D8664F903F6680B2BA97C50737B152970A2 (32)
[15:06:15][VV][utils:282]: (TPL) AES CBC IV  decrypted: B89A8F2FD78888A0793EEA1988B1B464B730B5F736631B4019396BC44A6828EC (32)
[15:06:15][D][utils:294]: 2F2F check after decrypting  !!!
[15:06:15][VV][wmbus:298]: Decrypting TPL AES CBC IV failed!
[15:06:15][W][component:237]: Component wmbus took a long time for an operation (172 ms).
[15:06:15][W][component:238]: Components should block for at most 30 ms.
[15:06:22][VV][api.service:697]: on_ping_request: PingRequest {}
[15:06:22][VV][api.service:043]: send_ping_response: PingResponse {}
[15:06:23][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[15:06:25][V][rxLoop:167]: Have 110 bytes from CC1101 Rx, RSSI: -46 dBm LQI: 128
[15:06:25][D][mbus:034]: Processing T1 A frame
[

Niestety nie mam pojęcia co jest nie tak. Rozważam przejście z ESP2866 na ESP32, żeby spróbować wersji 4.X ,ale zanim to zrobię chciałem was zapytać czy to ma sens. Tak naprawdę chciałbym uniknąć wymiany hardware, może jest coś co mogę poprawić.

Tu problemem jest zły klucz. A czy to v3 czy v4 to już poboczna kwestia. Ja bym radził przejść na v4 - więcej pól zdekodujesz.

Dziękuje za szybką odpowiedz, wychodzi na to że muszę przycisnąć gminę żeby uzyskać klucz, a chciałem tego uniknąć bo podejrzewam że będzie to trudne bo Panie raczej tego nie ogarną :face_exhaling:

Decyzja przejścia na ESP32 podjęta :muscle: