Hello, can anyone help with configuration? I can’t connect my esp32 to wmbusmeters.
log from wmbusmeter:
Wmbusmeters (W-MBus to MQTT)
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:23:35] INFO: CONFIG_CONF ...
[17:23:35] INFO: {"device":"rtlwmbus:CMD(/usr/bin/nc -lk 9022)","donotprobe":"/dev/ttyAMA0","format":"json","logfile":"/dev/stdout","loglevel":"normal","logtelegrams":false,"shell":"/wmbusmeters/mosquitto_pub.sh \"wmbusmeters/$METER_NAME\" \"$METER_JSON\""}
[17:23:35] INFO: CONFIG_METERS ...
[17:23:35] INFO: [{"driver":"iperl","id":"","key":"","name":"ExampleMeter"}]
[17:23:35] INFO: Syncing wmbusmeters configuration ...
[17:23:35] INFO: Registering meters ...
[17:23:35] INFO: Adding meter-0001 ...
[17:23:35] INFO: Generating MQTT configuration ...
[17:23:36] INFO: Broker 10.0.0.120 will be used.
[17:23:36] INFO:
MQTT Discovery ...
tar: wmbusmeters-master/ha-addon/mqtt_discovery: not found in archive
[17:23:37] INFO: Adding meter: ExampleMeter ...
[17:23:37] INFO: File /config/wmbusmeters/etc/mqtt_discovery/iperl.json not found.
[17:23:37] INFO: MQTT Discovery cleanup...
[17:23:38] INFO: Starting web configuration service.
[17:23:38] INFO: Running wmbusmeters ...
Not a valid meter id nor a valid meter match expression ""
Started config rtlwmbus listening on none using CMD(/usr/bin/nc -lk 9022)
No meters configured. Printing id:s of all telegrams heard!
[17:23:38] INFO: Starting Nginx...
2023/09/14 17:23:38 [notice] 83#83: using the "epoll" event method
2023/09/14 17:23:38 [notice] 83#83: nginx/1.24.0
2023/09/14 17:23:38 [notice] 83#83: OS: Linux 6.1.45
2023/09/14 17:23:38 [notice] 83#83: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2023/09/14 17:23:38 [notice] 83#83: start worker processes
2023/09/14 17:23:38 [notice] 83#83: start worker process 238
esp32 conf:
esphome:
name: d1mini-esp32-water-meter
friendly_name: d1mini-esp32-water-meter
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "wERyJs20vy7ccZES3wM+P7UvrAGN9t+IjiBbj/Z85FQ="
ota:
password: "354266ba65e3c7d2f05b0d9780fbe47a"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# manual_ip:
# static_ip: 10.0.0.244
# gateway: 10.0.0.1
# subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "D1Mini-Esp32-Water-Meter"
password: "cRtAEwDSS084"
captive_portal:
time:
- platform: sntp
id: time_sntp
external_components:
- source: github://SzczepanLeon/esphome-components@main
components: [ wmbus ]
wmbus:
mosi_pin: GPIO23 # MOSI Attached to Hardware SPI controller MOSI SPI Interface
miso_pin: GPIO19 # MISO Attached to Hardware SPI controller MISO SPI Interface
clk_pin: GPIO18 # SCK Attached to Hardware SPI controller CLK
cs_pin: GPIO5 # CSN Attached to Hardware SPI controller, Controls Boot Mode; CS SPI Interface 10k Pull-Down, boot fails if pulled high !!!
gdo0_pin: GPIO21 # SDA Clock output. High Impedance !
gdo2_pin: GPIO22 # SCL FIFO status signals. High Impedance !
clients:
- name: "wmbusmeters"
ip_address: "10.0.0.120"
port: 7011
format: RTLWMBUS
transport: TCP
sensor:
- platform: wmbus
type: iperl
key: ""
lqi:
name: "My lqi"
rssi:
name: "My RSSI"
total_water_m3:
name: "My cold water"
mqtt:
broker: 10.0.0.120
username: !secret mqtt_user
password: !secret mqtt_pass
discovery: true
esp log:
[17:37:32][I][app:102]: ESPHome version 2023.8.3 compiled on Sep 14 2023, 16:13:10
[17:37:32][C][wifi:543]: WiFi:
[17:37:32][C][wifi:379]: Local MAC: 48:E7:29:9E:58:24
[17:37:32][C][wifi:380]: SSID: [redacted]
[17:37:32][C][wifi:381]: IP Address: 10.0.0.145
[17:37:32][C][wifi:383]: BSSID: [redacted]
[17:37:32][C][wifi:384]: Hostname: 'd1mini-esp32-water-meter'
[17:37:32][C][wifi:386]: Signal strength: -39 dB ▂▄▆█
[17:37:32][C][wifi:390]: Channel: 6
[17:37:32][C][wifi:391]: Subnet: 255.255.255.0
[17:37:32][C][wifi:392]: Gateway: 10.0.0.1
[17:37:32][C][wifi:393]: DNS1: 10.0.0.1
[17:37:32][C][wifi:394]: DNS2: 0.0.0.0
[17:37:32][C][logger:301]: Logger:
[17:37:32][C][logger:302]: Level: DEBUG
[17:37:32][C][logger:303]: Log Baud Rate: 115200
[17:37:32][C][logger:305]: Hardware UART: UART0
[17:37:32][C][captive_portal:088]: Captive Portal:
[17:37:32][C][sntp:056]: Server 3: '2.pool.ntp.org'
[17:37:32][C][sntp:057]: Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[17:37:32][C][mdns:112]: mDNS:
[17:37:32][C][mdns:113]: Hostname: d1mini-esp32-water-meter
[17:37:33][C][ota:093]: Over-The-Air Updates:
[17:37:33][C][ota:094]: Address: d1mini-esp32-water-meter.local:3232
[17:37:33][C][ota:097]: Using Password.
[17:37:33][C][api:138]: API Server:
[17:37:33][C][api:139]: Address: d1mini-esp32-water-meter.local:6053
[17:37:33][C][api:141]: Using noise encryption: YES
[17:37:33][C][mqtt:130]: MQTT:
[17:37:33][C][mqtt:132]: Server Address: 10.0.0.120:1883 (10.0.0.120)
[17:37:33][C][mqtt:133]: Username: [redacted]
[17:37:33][C][mqtt:134]: Client ID: [redacted]
[17:37:33][C][mqtt:136]: Discovery prefix: 'homeassistant'
[17:37:33][C][mqtt:137]: Discovery retain: YES
[17:37:33][C][mqtt:139]: Topic Prefix: 'd1mini-esp32-water-meter'
[17:37:33][C][mqtt:141]: Log Topic: 'd1mini-esp32-water-meter/debug'
[17:37:33][C][mqtt:144]: Availability: 'd1mini-esp32-water-meter/status'
[17:37:33][C][mqtt.sensor:028]: MQTT Sensor '0x00 My lqi':
[17:37:33][C][mqtt.sensor:032]: State Topic: 'd1mini-esp32-water-meter/sensor/0x00_my_lqi/state'
[17:37:33][C][mqtt.sensor:028]: MQTT Sensor '0x00 My RSSI':
[17:37:33][C][mqtt.sensor:032]: State Topic: 'd1mini-esp32-water-meter/sensor/0x00_my_rssi/state'
[17:37:33][C][mqtt.sensor:028]: MQTT Sensor '0x00 My cold water':
[17:37:33][C][mqtt.sensor:032]: State Topic: 'd1mini-esp32-water-meter/sensor/0x00_my_cold_water/state'
[17:37:33][C][wmbus:394]: wM-Bus v2.2.29:
[17:37:33][C][wmbus:396]: Clients:
[17:37:33][C][wmbus:403]: wmbusmeters: 10.0.0.120:7011 TCP [rtl-wmbus]
[17:37:33][C][wmbus:411]: CC1101 SPI bus:
[17:37:33][C][wmbus:412]: MOSI Pin: GPIO23
[17:37:33][C][wmbus:413]: MISO Pin: GPIO19
[17:37:33][C][wmbus:414]: CLK Pin: GPIO18
[17:37:33][C][wmbus:415]: CS Pin: GPIO5
[17:37:33][C][wmbus:416]: GDO0 Pin: GPIO21
[17:37:33][C][wmbus:417]: GDO2 Pin: GPIO22
[17:37:33][C][wmbus:424]: Available drivers: amiplus, apator08, apator162, apatoreitn, bmeters, c5isf, compact5, dme07, elf, evo868, fhkvdataiii, hydrocalm3, hydrus, iperl, itron, izar, mkradio3, mkradio4, qheat, qwater, sharky774, topaseskr, ultrimis, unismart, vario451
[17:37:33][C][wmbus:442]: Meter:
[17:37:33][C][wmbus:443]: ID: 0 [0x00000000]
[17:37:33][C][wmbus:444]: Type: iperl
[17:37:33][C][wmbus:445]: Mode: T1
[17:37:33][C][wmbus:446]: Key: ''
[17:37:33][C][wmbus:448]: Sensor '0x00 My lqi'
[17:37:33][C][wmbus:448]: Device Class: 'signal_strength'
[17:37:33][C][wmbus:448]: State Class: 'measurement'
[17:37:33][C][wmbus:448]: Unit of Measurement: ''
[17:37:33][C][wmbus:448]: Accuracy Decimals: 0
[17:37:33][C][wmbus:448]: Sensor '0x00 My RSSI'
[17:37:33][C][wmbus:448]: Device Class: 'signal_strength'
[17:37:33][C][wmbus:448]: State Class: 'measurement'
[17:37:33][C][wmbus:448]: Unit of Measurement: 'dBm'
[17:37:33][C][wmbus:448]: Accuracy Decimals: 0
[17:37:33][C][wmbus:448]: Sensor '0x00 My cold water'
[17:37:33][C][wmbus:448]: Device Class: 'water'
[17:37:33][C][wmbus:448]: State Class: 'total_increasing'
[17:37:33][C][wmbus:448]: Unit of Measurement: 'm³'
[17:37:33][C][wmbus:448]: Accuracy Decimals: 3
[17:37:33][C][wmbus:448]: Icon: 'mdi:water'