Próbuję odczytać wodomierz Multical21, jednak jak na razie bez sukcesu. Nie mam pojęcia, co jest przyczyną. Jestem początkujący, ale może ktoś z większą wiedzą i doświadczenie będzie mógł pomóc na podstawie logów very_verbose i yamla. Hardware to ESP8266 i CC1101 868.950.
INFO ESPHome 2024.4.2
INFO Reading configuration /config/esphome/wodomierzesp8266.yaml...
INFO Detected timezone 'Europe/Warsaw'
INFO Starting log output from 192.168.1.73 using esphome API
INFO Successfully connected to wodomierzesp8266 @ 192.168.1.73 in 0.004s
INFO Successful handshake with wodomierzesp8266 @ 192.168.1.73 in 2.866s
[23:41:21][I][app:100]: ESPHome version 2024.4.2 compiled on May 9 2024, 23:37:43
[23:41:21][C][wifi:580]: WiFi:
[23:41:21][C][wifi:408]: Local MAC: BC:FF:4D:82:96:B2
[23:41:21][C][wifi:413]: SSID: 'SD'[redacted]
[23:41:21][C][wifi:416]: IP Address: 192.168.1.73
[23:41:21][C][wifi:419]: BSSID: 40:3F:8C:91:77:58[redacted]
[23:41:21][C][wifi:421]: Hostname: 'wodomierzesp8266'
[23:41:21][C][wifi:423]: Signal strength: -46 dB ▂▄▆█
[23:41:21][V][wifi:425]: Priority: 0.0
[23:41:21][C][wifi:427]: Channel: 1
[23:41:21][C][wifi:428]: Subnet: 255.255.255.0
[23:41:21][C][wifi:429]: Gateway: 192.168.1.1
[23:41:21][C][wifi:430]: DNS1: 192.168.1.1
[23:41:21][C][wifi:431]: DNS2: 0.0.0.0
[23:41:21][C][logger:166]: Logger:
[23:41:21][C][logger:167]: Level: VERY_VERBOSE
[23:41:21][C][logger:169]: Log Baud Rate: 115200
[23:41:21][C][logger:170]: Hardware UART: UART0
[23:41:22][C][homeassistant.time:010]: Home Assistant Time:
[23:41:22][C][homeassistant.time:011]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[23:41:22][C][captive_portal:088]: Captive Portal:
[23:41:22][C][web_server:169]: Web Server:
[23:41:22][C][web_server:170]: Address: wodomierzesp8266.local:80
[23:41:22][C][mdns:115]: mDNS:
[23:41:22][C][mdns:116]: Hostname: wodomierzesp8266
[23:41:22][V][mdns:117]: Services:
[23:41:22][V][mdns:119]: - _esphomelib, _tcp, 6053
[23:41:22][V][mdns:121]: TXT: friendly_name = WodomierzESP8266
[23:41:22][V][mdns:121]: TXT: version = 2024.4.2
[23:41:22][V][mdns:121]: TXT: mac = bcff4d8296b2
[23:41:22][V][mdns:121]: TXT: platform = ESP8266
[23:41:22][V][mdns:121]: TXT: board = nodemcuv2
[23:41:22][V][mdns:121]: TXT: network = wifi
[23:41:22][V][mdns:121]: TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[23:41:22][V][mdns:119]: - _http, _tcp, 80
[23:41:22][C][ota:096]: Over-The-Air Updates:
[23:41:22][C][ota:097]: Address: wodomierzesp8266.local:8266
[23:41:22][C][ota:100]: Using Password.
[23:41:22][C][ota:103]: OTA version: 2.
[23:41:22][C][api:139]: API Server:
[23:41:22][C][api:140]: Address: wodomierzesp8266.local:6053
[23:41:22][C][api:142]: Using noise encryption: YES
[23:41:22][C][wmbus:372]: wM-Bus v3.2.1:
[23:41:22][C][wmbus:374]: Clients:
[23:41:22][C][wmbus:376]: wmbusmeters: 10.0.0.1:7227 TCP [rtl-wmbus]
[23:41:22][C][wmbus:385]: LED:
[23:41:22][C][wmbus:386]: Pin: GPIO0
[23:41:22][C][wmbus:387]: Duration: 1000 ms
[23:41:22][C][wmbus:389]: CC1101 frequency: 868.950 MHz
[23:41:22][C][wmbus:390]: CC1101 SPI bus:
[23:41:22][C][wmbus:391]: MOSI Pin: GPIO13
[23:41:22][C][wmbus:392]: MISO Pin: GPIO12
[23:41:22][C][wmbus:393]: CLK Pin: GPIO14
[23:41:22][C][wmbus:394]: CS Pin: GPIO2
[23:41:22][C][wmbus:395]: GDO0 Pin: GPIO5
[23:41:22][C][wmbus:396]: GDO2 Pin: GPIO4
[23:41:22][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
[23:41:22][C][wmbus:421]: Meter:
[23:41:22][C][wmbus:422]: ID: 58074409 [0x03762529]
[23:41:22][C][wmbus:423]: Type: multical21
[23:41:22][C][wmbus:424]: Mode: T1
[23:41:22][C][wmbus:425]: Key: '00000000000000000000000000000000'
[23:41:22][C][wmbus:427]: Sensor '0x3762529 LQI wodomierz'
[23:41:22][C][wmbus:427]: Device Class: 'signal_strength'
[23:41:22][C][wmbus:427]: State Class: 'measurement'
[23:41:22][C][wmbus:427]: Unit of Measurement: ''
[23:41:22][C][wmbus:427]: Accuracy Decimals: 0
[23:41:22][C][wmbus:427]: Sensor '0x3762529 RSSI wodomierz'
[23:41:22][C][wmbus:427]: Device Class: 'signal_strength'
[23:41:22][C][wmbus:427]: State Class: 'measurement'
[23:41:22][C][wmbus:427]: Unit of Measurement: 'dBm'
[23:41:22][C][wmbus:427]: Accuracy Decimals: 0
[23:41:22][C][wmbus:427]: Sensor '0x3762529 Wodomierz'
[23:41:22][C][wmbus:427]: Device Class: 'water'
[23:41:22][C][wmbus:427]: State Class: 'total_increasing'
[23:41:22][C][wmbus:427]: Unit of Measurement: 'm³'
[23:41:22][C][wmbus:427]: Accuracy Decimals: 3
[23:41:22][C][wmbus:427]: Icon: 'mdi:water'
[23:41:22][V][wmbus:427]: Force Update: YES
[23:41:22][C][wmbus:421]: Meter:
[23:41:22][C][wmbus:422]: ID: 2952790005 [0xAFFFFFF5]
[23:41:22][C][wmbus:423]: Type: text
[23:41:22][C][wmbus:424]: Mode: T1
[23:41:22][C][wmbus:425]: Key: ''
[23:41:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=148362 (now=158362)
[23:41:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=158362 (now=168362)
[23:41:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=168362 (now=178362)
[23:41:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=123288 (now=183288)
[23:42:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=178362 (now=188362)
[23:42:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=188362 (now=198362)
[23:42:20][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=198362 (now=208362)
[23:42:21][VV][api.connection:132]: Sending keepalive PING...
[23:42:21][VV][api.service:037]: send_ping_request: PingRequest {}
[23:42:21][VV][api.service:611]: on_ping_response: PingResponse {}
[23:42:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=208362 (now=218362)
[23:42:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=218362 (now=228362)
[23:42:40][V][rxLoop:167]: Have 40 bytes from CC1101 Rx, RSSI: -31 dBm LQI: 128
[23:42:40][D][mbus:023]: Processing C1 B frame
[23:42:40][V][mbus:027]: Frame: 25442D2C094407581B168D204B748B8F222FB90C9FC7CE6A7C0EC7D310E24F032D1DC61ACFA0 (38) [with CRC]
[23:42:40][V][mbus:165]: Validating CRC for Block1 + Block2
[23:42:40][V][crc:031]: calculated: 0xCFA0, read: 0xCFA0
[23:42:40][V][mbus:062]: Frame: 23442D2C094407581B168D204B748B8F222FB90C9FC7CE6A7C0EC7D310E24F032D1DC61A (36) [without CRC]
[23:42:40][VV][wmbus:061]: Have data from CC1101 ...
[23:42:40][D][wmbus:176]: Meter ID [0x58074409] RSSI: -31 dBm LQI: 128 Frame: C1 B not found in configuration T: 23442D2C094407581B168D204B748B8F222FB90C9FC7CE6A7C0EC7D310E24F032D1DC61A (36)
[23:42:40][VV][wmbus:186]: Will send telegram to clients ...
[23:42:40][V][wmbus:228]: Will send RTLWMBUS telegram to 10.0.0.1:7227 via TCP
[23:42:45][E][wmbus:241]: Can't connect via TCP to 10.0.0.1:7227
[23:42:45][W][component:237]: Component wmbus took a long time for an operation (5088 ms).
[23:42:45][W][component:238]: Components should block for at most 30 ms.
[23:42:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=228362 (now=238362)
[23:42:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=183288 (now=243288)
[23:43:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=238362 (now=248362)
[23:43:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=248362 (now=258362)
[23:43:20][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=258362 (now=268362)
[23:43:21][VV][api.connection:132]: Sending keepalive PING...
[23:43:21][VV][api.service:037]: send_ping_request: PingRequest {}
[23:43:21][VV][api.service:611]: on_ping_response: PingResponse {}
[23:43:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=268362 (now=278362)
[23:43:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=278362 (now=288362)
[23:43:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=288362 (now=298362)
[23:43:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=243288 (now=303288)
[23:44:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=298362 (now=308362)
[23:44:03][I][ota:117]: Boot seems successful, resetting boot loop counter.
[23:44:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=308362 (now=318362)
[23:44:16][V][rxLoop:167]: Have 40 bytes from CC1101 Rx, RSSI: -31 dBm LQI: 128
[23:44:16][D][mbus:023]: Processing C1 B frame
[23:44:16][V][mbus:027]: Frame: 25442D2C094407581B168D204C888B8F22700F1F604E27EBC0B424A2D9C6E0DF6B391719E0FB (38) [with CRC]
[23:44:16][V][mbus:165]: Validating CRC for Block1 + Block2
[23:44:16][V][crc:031]: calculated: 0xE0FB, read: 0xE0FB
[23:44:16][V][mbus:062]: Frame: 23442D2C094407581B168D204C888B8F22700F1F604E27EBC0B424A2D9C6E0DF6B391719 (36) [without CRC]
[23:44:16][VV][wmbus:061]: Have data from CC1101 ...
[23:44:16][D][wmbus:176]: Meter ID [0x58074409] RSSI: -31 dBm LQI: 128 Frame: C1 B not found in configuration T: 23442D2C094407581B168D204C888B8F22700F1F604E27EBC0B424A2D9C6E0DF6B391719 (36)
[23:44:16][VV][wmbus:186]: Will send telegram to clients ...
[23:44:16][V][wmbus:228]: Will send RTLWMBUS telegram to 10.0.0.1:7227 via TCP
[23:44:21][E][wmbus:241]: Can't connect via TCP to 10.0.0.1:7227
[23:44:21][W][component:237]: Component wmbus took a long time for an operation (5086 ms).
[23:44:21][W][component:238]: Components should block for at most 30 ms.
[23:44:21][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=318362 (now=329389)
[23:44:21][VV][api.connection:132]: Sending keepalive PING...
[23:44:21][VV][api.service:037]: send_ping_request: PingRequest {}
[23:44:21][VV][api.service:611]: on_ping_response: PingResponse {}
[23:44:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=328362 (now=338362)
[23:44:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=338362 (now=348362)
[23:44:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=348362 (now=358362)
[23:44:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=303288 (now=363288)
[23:45:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=358362 (now=368362)
[23:45:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=368362 (now=378362)
[23:45:20][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=378362 (now=388362)
[23:45:21][VV][api.connection:132]: Sending keepalive PING...
[23:45:21][VV][api.service:037]: send_ping_request: PingRequest {}
[23:45:21][VV][api.service:611]: on_ping_response: PingResponse {}
[23:45:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=388362 (now=398362)
[23:45:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=398362 (now=408362)
[23:45:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=408362 (now=418362)
[23:45:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=363288 (now=423288)
[23:46:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=418362 (now=428362)
[23:46:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=428362 (now=438362)
[23:46:20][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=438362 (now=448362)
[23:46:22][VV][api.connection:132]: Sending keepalive PING...
[23:46:22][VV][api.service:037]: send_ping_request: PingRequest {}
[23:46:22][VV][api.service:611]: on_ping_response: PingResponse {}
[23:46:30][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=448362 (now=458362)
[23:46:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=458362 (now=468362)
[23:46:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=468362 (now=478362)
[23:46:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=423288 (now=483288)
[23:47:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=478362 (now=488362)
[23:47:10][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=488362 (now=498362)
[23:47:20][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=498362 (now=508362)
[23:47:22][VV][api.connection:132]: Sending keepalive PING...
[23:47:22][VV][api.service:037]: send_ping_request: PingRequest {}
[23:47:22][VV][api.service:611]: on_ping_response: PingResponse {}
[23:47:26][V][rxLoop:167]: Have 40 bytes from CC1101 Rx, RSSI: -30 dBm LQI: 128
[23:47:26][D][mbus:023]: Processing C1 B frame
[23:47:26][V][mbus:027]: Frame: 25442D2C094407581B168D204EB08B8F22176859FCB6ACEF06C1D6F741EEA2F747E366BAA999 (38) [with CRC]
[23:47:26][V][mbus:165]: Validating CRC for Block1 + Block2
[23:47:26][V][crc:031]: calculated: 0xA999, read: 0xA999
[23:47:26][V][mbus:062]: Frame: 23442D2C094407581B168D204EB08B8F22176859FCB6ACEF06C1D6F741EEA2F747E366BA (36) [without CRC]
[23:47:26][VV][wmbus:061]: Have data from CC1101 ...
[23:47:26][D][wmbus:176]: Meter ID [0x58074409] RSSI: -30 dBm LQI: 128 Frame: C1 B not found in configuration T: 23442D2C094407581B168D204EB08B8F22176859FCB6ACEF06C1D6F741EEA2F747E366BA (36)
[23:47:26][VV][wmbus:186]: Will send telegram to clients ...
[23:47:26][V][wmbus:228]: Will send RTLWMBUS telegram to 10.0.0.1:7227 via TCP
[23:47:32][E][wmbus:241]: Can't connect via TCP to 10.0.0.1:7227
[23:47:32][W][component:237]: Component wmbus took a long time for an operation (5088 ms).
[23:47:32][W][component:238]: Components should block for at most 30 ms.
[23:47:32][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=508362 (now=520221)
[23:47:40][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=518362 (now=528362)
[23:47:50][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=528362 (now=538363)
[23:47:55][VV][scheduler:225]: Running interval '' with interval=60000 last_execution=483288 (now=543288)
[23:48:00][VV][scheduler:225]: Running interval '' with interval=10000 last_execution=538362 (now=548362)
esphome:
name: wodomierzesp8266
friendly_name: WodomierzESP8266
esp8266:
board: nodemcuv2
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
encryption:
key: "xxxxxxxxxxxxxxxx"
ota:
password: "xxxxxxxxxxxxxxxxxxxxxxxxx"
wifi:
ssid: xxxxxxxxxxxxxxx
password: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wodomierzesp8266"
password: "xxxxxxxxxxxxxxxxx"
time:
- platform: homeassistant
id: homeassistant_time
# Enable Web server
web_server:
port: 80
captive_portal:
external_components:
- source: github://SzczepanLeon/esphome-components@main
components: [ wmbus ]
wmbus:
frequency: 868.950
mosi_pin: GPIO13 #D7 HMOSI
miso_pin: GPIO12 #D6 HMISO
clk_pin: GPIO14 #D5 HSCLK
cs_pin: GPIO2 #D4
gdo0_pin: GPIO5 #D1
gdo2_pin: GPIO4 #D2
led_pin: GPIO0
led_blink_time: "1s"
# sync_mode: True
clients:
- name: "wmbusmeters"
ip_address: "10.0.0.1"
port: 7227
# meter_id: zzzzzzzz
sensor:
- platform: wmbus
meter_id: 58074409
type: multical21
key: "00000000000000000000000000000000"
lqi:
name: "LQI wodomierz"
rssi:
name: "RSSI wodomierz"
total_water_m3:
name: "Wodomierz"
force_update: true
text_sensor:
- platform: wmbus
name: "Text debug for Apator 16-2"