Cześć,
próbuję skonfigurować ESP32 z CC1101 do czytania liczników, ale mi nie idzie. Home Assistanta mam postawionego na Raspberry Pi 3. Wszystko niby działa, ale nie pokazują się telegramy w logach. Yaml wygląda tak:
esphome:
name: esp32
friendly_name: esp32
build_path: "./.build/wmbus/"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: "Rel4i+x+axIpNg0xZAxT4ktSxXNg/656bf3ZrMBUKOw="
ota:
- platform: esphome
password: "faadb190be3fd942205205ccab63e65e"
wifi:
ssid: "Motor Pany"
password:
use_address: "192.168.33.20"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32 Fallback Hotspot"
password: "v9lmQDRgkmnm"
captive_portal:
external_components:
- source: github://SzczepanLeon/esphome-components@version_4
time:
platform: sntp
wmbus:
all_drivers: true
log_all: true
mosi_pin: 13
clk_pin: 14
miso_pin: 12
gdo2_pin: 4
gdo0_pin: 2
cs_pin: 15
Sprawdzałem połączenia kilkanaście razy. Wydaje mi się ogólnie że moduł radiowy działa - co jakiś czas błyśnie niebieska dioda na esp32.
Logi wyglądają tak:
[20:19:34]rences to flash: 0 cached, 1 written, 0 failed
[20:19:34][I][app:029]: Running through setup()...
[20:19:34][C][wifi:048]: Setting up WiFi...
[20:19:34][C][wifi:061]: Starting WiFi...
[20:19:34][C][wifi:062]: Local MAC: 78:42:1C:67:C6:9C
[20:19:34][D][wifi:482]: Starting scan...
[20:19:34][W][component:167]: Component wifi set Warning flag: scanning for networks
[20:19:34][D][wifi:497]: Found networks:
[20:19:34][I][wifi:541]: - 'Motor Pany' (92:23:51:07:A2:8C) [redacted]▂▄▆█
[20:19:34][D][wifi:542]: Channel: 3
[20:19:34][D][wifi:543]: RSSI: -68 dB
[20:19:34][D][wifi:546]: - 'DIRECT-9d-BRAVIA'[redacted] (46:E4:EE:01:0C:B6) [redacted]▂▄▆█
[20:19:34][D][wifi:546]: - 'Play Internet 4G LTE 8349'[redacted] (6C:72:20:A6:83:4A) [redacted]▂▄▆█
[20:19:34][D][wifi:546]: - 'W-1CXA667'[redacted] (CA:C9:A3:00:11:DA) [redacted]▂▄▆█
[20:19:34][D][wifi:546]: - 'TP-Link_621C'[redacted] (40:ED:00:CD:62:1B) [redacted]▂▄▆█
[20:19:34][D][wifi:546]: - 'TP-LINK_E25318'[redacted] (C0:25:2F:51:28:E1) [redacted]▂▄▆█
[20:19:34][I][wifi:313]: WiFi Connecting to 'Motor Pany'...
[20:19:34][I][wifi:617]: WiFi Connected!
[20:19:34][C][wifi:428]: Local MAC: 78:42:1C:67:C6:9C
[20:19:34][C][wifi:433]: SSID: 'Motor Pany'[redacted]
[20:19:34][C][wifi:436]: IP Address: 192.168.33.20
[20:19:34][C][wifi:440]: BSSID: 92:23:51:07:A2:8C[redacted]
[20:19:34][C][wifi:441]: Hostname: 'esp32'
[20:19:34][C][wifi:443]: Signal strength: -69 dB ▂▄▆█
[20:19:34][C][wifi:447]: Channel: 3
[20:19:34][C][wifi:448]: Subnet: 255.255.255.0
[20:19:34][C][wifi:449]: Gateway: 192.168.33.1
[20:19:34][C][wifi:450]: DNS1: 1.1.1.1
[20:19:34][C][wifi:451]: DNS2: 8.8.8.8
[20:19:34][D][wifi:626]: Disabling AP...
[20:19:34][C][sntp:018]: Setting up SNTP...
[20:19:34][C][api:030]: Setting up Home Assistant API server...
[20:19:34][D][rxLoop:031]: Set CC1101 frequency to 868.950MHz [21 6B D0]
[20:19:34][D][rxLoop:043]: CC1101 version '20'
[20:19:34][D][rxLoop:045]: CC1101 initialized
[20:19:34][I][app:066]: setup() finished successfully!
[20:19:34][W][component:182]: Component wifi cleared Warning flag
[20:19:34][D][sntp:067]: Synchronized time: 2025-06-16 20:18:36
[20:19:34][W][component:167]: Component api set Warning flag: unspecified
[20:19:34][I][app:115]: ESPHome version 2025.5.2 compiled on Jun 16 2025, 20:00:01
[20:19:34][C][wifi:600]: WiFi:
[20:19:34][C][wifi:428]: Local MAC: 78:42:1C:67:C6:9C
[20:19:34][C][wifi:433]: SSID: 'Motor Pany'[redacted]
[20:19:34][C][wifi:436]: IP Address: 192.168.33.20
[20:19:34][C][wifi:440]: BSSID: 92:23:51:07:A2:8C[redacted]
[20:19:34][C][wifi:441]: Hostname: 'esp32'
[20:19:34][C][wifi:443]: Signal strength: -68 dB ▂▄▆█
[20:19:34][C][wifi:447]: Channel: 3
[20:19:34][C][wifi:448]: Subnet: 255.255.255.0
[20:19:34][C][wifi:449]: Gateway: 192.168.33.1
[20:19:34][C][wifi:450]: DNS1: 1.1.1.1
[20:19:34][C][wifi:451]: DNS2: 8.8.8.8
[20:19:34][C][logger:224]: Logger:
[20:19:34][C][logger:225]: Max Level: DEBUG
[20:19:34][C][logger:226]: Initial Level: DEBUG
[20:19:34][C][logger:228]: Log Baud Rate: 115200
[20:19:34][C][logger:229]: Hardware UART: UART0
[20:19:34][C][logger:233]: Task Log Buffer Size: 768
[20:19:34][C][captive_portal:089]: Captive Portal:
[20:19:34][C][sntp:042]: SNTP Time:
[20:19:34][C][sntp:045]: Server 0: '0.pool.ntp.org'
[20:19:34][C][sntp:045]: Server 1: '1.pool.ntp.org'
[20:19:34][C][sntp:045]: Server 2: '2.pool.ntp.org'
[20:19:34][C][mdns:120]: mDNS:
[20:19:34][C][mdns:121]: Hostname: esp32
[20:19:34][C][esphome.ota:073]: Over-The-Air updates:
[20:19:34][C][esphome.ota:074]: Address: 192.168.33.20:3232
[20:19:34][C][esphome.ota:075]: Version: 2
[20:19:34][C][esphome.ota:078]: Password configured
[20:19:34][C][safe_mode:018]: Safe Mode:
[20:19:34][C][safe_mode:020]: Boot considered successful after 60 seconds
[20:19:34][C][safe_mode:021]: Invoke after 10 boot attempts
[20:19:34][C][safe_mode:023]: Remain in safe mode for 300 seconds
[20:19:34][C][api:170]: API Server:
[20:19:34][C][api:171]: Address: 192.168.33.20:6053
[20:19:34][C][api:173]: Using noise encryption: YES
[20:19:34][C][wmbus:413]: wM-Bus v4.2.1-1.17.1-b8f4a945:
[20:19:34][C][wmbus:431]: Chip ID: 9CC6671C4278
[20:19:34][C][wmbus:433]: CC1101 frequency: 868.950 MHz
[20:19:34][C][wmbus:434]: CC1101 SPI bus:
[20:19:34][C][wmbus:438]: MOSI Pin: GPIO13
[20:19:34][C][wmbus:439]: MISO Pin: GPIO12
[20:19:34][C][wmbus:440]: CLK Pin: GPIO14
[20:19:34][C][wmbus:441]: CS Pin: GPIO15
[20:19:34][C][wmbus:442]: GDO0 Pin: GPIO2
[20:19:34][C][wmbus:443]: GDO2 Pin: GPIO4
[20:19:34][C][wmbus:449]: Available drivers: wme5, weh_07, watertech, waterstarm, vario451mid, vario451, vario411, unknown, unismart, ultrimis, ultraheat, tsd2, topaseskr, supercom587, sontex868, sharky774, sharky, sensostar, rfmtx1, rfmamb, qwater, qualcosonic, qsmoke, qheat_55_us, qheat, qcaloric, q400, pollucomf, piigth, omnipower, nemo, munia, multical21, mkradio4a, mkradio4, mkradio3, minomess, microclima, lse_08, lse_07_17, lansenth, lansensm, lansenrp, lansenpu, lansendw, kampress, kamheat, izar, iwm
[20:19:34][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[20:19:34][D][esp32.preferences:114]: Saving 1 preferences to flash...
[20:19:34][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
Niestety nie widzę żadnych telegramów. Czy ktoś jest w stanie powiedzieć mi co robię nie tak? Jestem amatorem w tej dziedzinie…
Moduł CC1101 mam taki (antenka przylutowana):