Cześć wszystkim!
Mam problem z odczytem z licznika HYDRODIGIT S1, nie widzę w ogóle komunikatów ID.
Prosił bym o sprawdzenie czy wszystko dobrze podłączyłem. Moje ESP32 to:
konfiguracja ESPHome
esphome:
name: esp32-pir
friendly_name: ESP32_PIR
external_components:
- source: github://SzczepanLeon/esphome-components@main
refresh: 12h
components: [ wmbus ]
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: "="
ota:
- platform: esphome
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-Pir Fallback Hotspot"
password: "cJ56fI3MpTch"
captive_portal:
time:
platform: sntp
wmbus:
all_drivers: True
log_all: True
mosi_pin: GPIO23
miso_pin: GPIO19
clk_pin: GPIO18
cs_pin: GPIO1
gdo0_pin: GPIO22
gdo2_pin: GPIO21
uart:
tx_pin: GPIO2
rx_pin: GPIO15
#baud_rate: 256000
baud_rate: 115200
parity: NONE
stop_bits: 1
ld2420:
text_sensor:
- platform: ld2420
fw_version:
name: LD2420 Firmware
sensor:
- platform: ld2420
moving_distance:
name : Moving Distance
binary_sensor:
- platform: ld2420
has_target:
name: Presence
switch:
- platform: restart
name: Restart ESPHome Node
select:
- platform: ld2420
operating_mode:
name: Operating Mode
number:
- platform: ld2420
presence_timeout:
name: Detection Presence Timeout
min_gate_distance:
name: Detection Gate Minimum
max_gate_distance:
name: Detection Gate Maximum
gate_select:
name: Select Gate to Set
still_threshold:
name: Set Still Threshold Value
move_threshold:
name: Set Move Threshold Value
button:
- platform: ld2420
apply_config:
name: Apply Config
factory_reset:
name: Factory Reset
restart_module:
name: Restart Module
revert_config:
name: Undo Edits
Do tego ESP mam podpięty jeszcze czujnik obecności, ale wydaje mi się że on nie przeszkadza, poprawcie mnie jeśli się mylę.
log:
INFO ESPHome 2025.2.2
INFO Reading configuration /config/esphome/esp32-pir.yaml...
INFO Detected timezone 'Europe/Warsaw'
WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO15 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from 192.168.1.33 using esphome API
INFO Successfully connected to esp32-pir @ 192.168.1.33 in 0.058s
INFO Successful handshake with esp32-pir @ 192.168.1.33 in 0.084s
[23:59:07][I][app:100]: ESPHome version 2025.2.2 compiled on Mar 19 2025, 23:54:56
[23:59:07][C][wifi:600]: WiFi:
[23:59:07][C][wifi:428]: Local MAC: 14:2B:2F:C2:01:6C
[23:59:07][C][wifi:433]: SSID: [redacted]
[23:59:07][C][wifi:436]: IP Address: 192.168.1.33
[23:59:07][C][wifi:440]: BSSID: [redacted]
[23:59:07][C][wifi:441]: Hostname: 'esp32-pir'
[23:59:07][C][wifi:443]: Signal strength: -45 dB ▂▄▆█
[23:59:07][C][wifi:447]: Channel: 3
[23:59:07][C][wifi:448]: Subnet: 255.255.255.0
[23:59:07][C][wifi:449]: Gateway: 192.168.1.1
[23:59:07][C][wifi:450]: DNS1: 192.168.1.1
[23:59:07][C][wifi:451]: DNS2: 0.0.0.0
[23:59:07][C][logger:177]: Logger:
[23:59:07][C][logger:178]: Max Level: DEBUG
[23:59:07][C][logger:179]: Initial Level: DEBUG
[23:59:07][C][logger:181]: Log Baud Rate: 115200
[23:59:07][C][logger:182]: Hardware UART: UART0
[23:59:07][C][uart.arduino_esp32:151]: UART Bus 1:
[23:59:07][C][uart.arduino_esp32:152]: TX Pin: GPIO2
[23:59:07][C][uart.arduino_esp32:153]: RX Pin: GPIO15
[23:59:07][C][uart.arduino_esp32:155]: RX Buffer Size: 256
[23:59:07][C][uart.arduino_esp32:157]: Baud Rate: 115200 baud
[23:59:07][C][uart.arduino_esp32:158]: Data Bits: 8
[23:59:07][C][uart.arduino_esp32:159]: Parity: NONE
[23:59:07][C][uart.arduino_esp32:160]: Stop bits: 1
[23:59:07][C][ld2420:068]: LD2420:
[23:59:07][C][ld2420:069]: Firmware Version : v1.5.9
[23:59:07][C][ld2420:070]: LD2420 Number:
[23:59:07][C][ld2420:072]: ld2420 Gate Timeout: 'Detection Presence Timeout'
[23:59:07][C][ld2420:072]: ld2420 Icon: 'mdi:timelapse'
[23:59:07][C][ld2420:072]: ld2420 Unit of Measurement: 's'
[23:59:07][C][ld2420:073]: ld2420 Gate Max Distance: 'Detection Gate Maximum'
[23:59:07][C][ld2420:073]: ld2420 Icon: 'mdi:motion-sensor'
[23:59:07][C][ld2420:073]: ld2420 Device Class: 'distance'
[23:59:07][C][ld2420:074]: ld2420 Gate Min Distance: 'Detection Gate Minimum'
[23:59:07][C][ld2420:074]: ld2420 Icon: 'mdi:motion-sensor'
[23:59:07][C][ld2420:074]: ld2420 Device Class: 'distance'
[23:59:07][C][ld2420:075]: ld2420 Gate Select: 'Select Gate to Set'
[23:59:07][C][ld2420:075]: ld2420 Icon: 'mdi:motion-sensor'
[23:59:07][C][ld2420:075]: ld2420 Device Class: 'distance'
[23:59:07][C][ld2420:077]: ld2420 Gate Move Threshold: 'Set Move Threshold Value'
[23:59:07][C][ld2420:077]: ld2420 Icon: 'mdi:motion-sensor'
[23:59:07][C][ld2420:078]: ld2420 Gate Still Threshold:: 'Set Still Threshold Value'
[23:59:07][C][ld2420:078]: ld2420 Icon: 'mdi:motion-sensor'
[23:59:07][C][ld2420:082]: ld2420 Apply Config: 'Apply Config'
[23:59:07][C][ld2420:082]: ld2420 Icon: 'mdi:restart-alert'
[23:59:07][C][ld2420:083]: ld2420 Revert Edits: 'Undo Edits'
[23:59:07][C][ld2420:083]: ld2420 Icon: 'mdi:restart'
[23:59:07][C][ld2420:084]: ld2420 Factory Reset: 'Factory Reset'
[23:59:07][C][ld2420:084]: ld2420 Icon: 'mdi:database'
[23:59:08][C][ld2420:085]: ld2420 Restart Module: 'Restart Module'
[23:59:08][C][ld2420:085]: ld2420 Icon: 'mdi:database'
[23:59:08][C][ld2420:087]: LD2420 Select:
[23:59:08][C][ld2420:088]: ld2420 Operating Mode 'Operating Mode'
[23:59:08][C][LD2420.text_sensor:011]: LD2420 TextSensor:
[23:59:08][C][LD2420.text_sensor:012]: Firmware 'LD2420 Firmware'
[23:59:08][C][LD2420.text_sensor:012]: Icon: 'mdi:chip'
[23:59:08][C][LD2420.sensor:011]: LD2420 Sensor:
[23:59:08][C][LD2420.sensor:012]: Distance 'Moving Distance'
[23:59:08][C][LD2420.sensor:012]: Device Class: 'distance'
[23:59:08][C][LD2420.sensor:012]: State Class: ''
[23:59:08][C][LD2420.sensor:012]: Unit of Measurement: 'cm'
[23:59:08][C][LD2420.sensor:012]: Accuracy Decimals: 0
[23:59:08][C][LD2420.binary_sensor:011]: LD2420 BinarySensor:
[23:59:08][C][LD2420.binary_sensor:012]: Presence 'Presence'
[23:59:08][C][LD2420.binary_sensor:012]: Device Class: 'occupancy'
[23:59:08][C][restart:068]: Restart Switch 'Restart ESPHome Node'
[23:59:08][C][restart:070]: Icon: 'mdi:restart'
[23:59:08][C][restart:091]: Restore Mode: always OFF
[23:59:08][C][captive_portal:089]: Captive Portal:
[23:59:08][C][sntp:042]: SNTP Time:
[23:59:08][C][sntp:045]: Server 0: '0.pool.ntp.org'
[23:59:08][C][sntp:045]: Server 1: '1.pool.ntp.org'
[23:59:08][C][sntp:045]: Server 2: '2.pool.ntp.org'
[23:59:08][C][mdns:116]: mDNS:
[23:59:08][C][mdns:117]: Hostname: esp32-pir
[23:59:08][C][esphome.ota:073]: Over-The-Air updates:
[23:59:08][C][esphome.ota:074]: Address: esp32-pir.local:3232
[23:59:08][C][esphome.ota:075]: Version: 2
[23:59:08][C][esphome.ota:078]: Password configured
[23:59:08][C][safe_mode:018]: Safe Mode:
[23:59:08][C][safe_mode:020]: Boot considered successful after 60 seconds
[23:59:08][C][safe_mode:021]: Invoke after 10 boot attempts
[23:59:08][C][safe_mode:023]: Remain in safe mode for 300 seconds
[23:59:08][C][api:140]: API Server:
[23:59:08][C][api:141]: Address: esp32-pir.local:6053
[23:59:08][C][api:143]: Using noise encryption: YES
[23:59:08][C][wmbus:338]: wM-Bus v4.1.4-1.17.1-b8f4a945:
[23:59:08][C][wmbus:356]: Chip ID: 6C01C22F2B14
[23:59:08][C][wmbus:358]: CC1101 frequency: 868.950 MHz
[23:59:08][C][wmbus:359]: CC1101 SPI bus:
[23:59:08][C][wmbus:363]: MOSI Pin: GPIO23
[23:59:08][C][wmbus:364]: MISO Pin: GPIO19
[23:59:08][C][wmbus:365]: CLK Pin: GPIO18
[23:59:08][C][wmbus:366]: CS Pin: GPIO1
[23:59:08][C][wmbus:367]: GDO0 Pin: GPIO22
[23:59:08][C][wmbus:368]: GDO2 Pin: GPIO21
[23:59:08][C][wmbus:374]: 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
[23:59:08][D][sensor:094]: 'Moving Distance': Sending state 192.00000 cm with 0 decimals of accuracy
[23:59:09][D][sensor:094]: 'Moving Distance': Sending state 169.00000 cm with 0 decimals of accuracy
[23:59:10][D][sensor:094]: 'Moving Distance': Sending state 155.00000 cm with 0 decimals of accuracy