This manual will show you how to acheive "remote" wmbus metering.
You will need to grab NodeMCU V2 development board and CC1101 radio transceiver.
Feel free to use something like this:
https://forum.arturhome.pl/t/komponent-do-esphome-umozliwiajacy-odczyt-miernikow-wm-bus-i-transmisje-wyniku-do-ha/7548
Use config esp_wmbus.yaml
.
In this configuration, ESP stick will stream all received telegrams to wmbusmeters running as your Home Assistant addon.
Current wmbusmeters addon configuration is somehow broken.
I created a pull request fixing this issue, but it's a breaking change for current users.
wmbusmeters/wmbusmeters#838
For now, you can use my forked repo.
- Go to Home Assistant → Settings → Add-ons
- Click ADD-ON STORE
- Upper-right corner click 3 dots → Repositories
- Add Repository https://github.com/KrzysztofHajdamowicz/wmbusmeters
- Install wmbusmeters addon
- Configure Your instance:
enable_mqtt_discovery
set to true
conf:
loglevel: normal
device: rtlwmbus:CMD(nc -lk 9022)
donotprobe: /dev/ttyAMA0
logtelegrams: false
format: json
logfile: /dev/stdout
shell: /wmbusmeters/mosquitto_pub.sh "wmbusmeters/$METER_NAME" "$METER_JSON"
meters
- name: ElectricityMeter
driver: amiplus
id: "12345678" #Note "123" casts number as string
key: DEADBEEF1337DEADBEEF1337DEADBEEF
- name: WaterMeter
driver: apator162
id: "87654321" #Note "123" casts number as string
key: "00000000000000000000000000000000" #Note "123" casts number as string
- in
Network
section, add port 9022 as TCP listener
Hi,
thanks for putting this together.
I'm having some issues with compiling this.
I use the ESPHome addon in homeassistant and when I try to compile this, I'm getting the following error.
`In file included from /data/esp_wmbus/.piolibdeps/esp_wmbus/wMbus-lib/rf_mbus.cpp:6:
/data/esp_wmbus/.piolibdeps/esp_wmbus/wMbus-lib/tmode_rf_settings.hpp:8:10: fatal error: ELECHOUSE_CC1101_SRC_DRV.h: No such file or directory
compilation terminated.
*** [/data/esp_wmbus/.pioenvs/esp_wmbus/lib521/wMbus-lib/rf_mbus.cpp.o] Error 1
========================= [FAILED] Took 52.25 seconds =========================`
Can you please help me?