Skip to content

Data provider for smartmeter watermeter.

License

Notifications You must be signed in to change notification settings

Wupsman/ha-watermeter

 
 

Repository files navigation

Easy Watermeter Integration for Home Assistant

diehl_metering

Requirements

  • Water meter with IZAR module (Diehl IZAR RC 868 I R4 PL), IZAR Radio Compact Hall is designed for mobile reading and fixed network remote reading of Diehl Metering meters.
  • Supported DVB-T receiver or Nano CUL Adapter, Andoer Tragbarer Mini Digitaler TV Stock USB 2.0 DVB-T + DAB + FM + RTL2832U + FC0012 Chip Unterstützung SDR Stimmer Empfänger
  • A computer. I’m using Raspbian Buster on a Raspberry Pi 3B+, but any Linux, macOS should work

Raspbian Buster + DVB-T receiver

RB3B_DVBT

Install dependencies

You need install:

Raspberry Zero - RASPIOS "buster armhf lite" with DVB dongle

Details and Installation see: wmbusmeters-with-rtl-sdr.md

Raspbian Buster + wmbusmeters with NANO-CUL (mbus) 868 Mhz

NANO-CUL (mbus) 868 is a lot easier to use because it only requires wmbusmeters. The resources (memory) required are also less compared to the variant with RTL-SDR and rtl-wmbus.

nanoCUL868 Please not, that you do need the NANO-CUL (mbus) 868 Mhz for wmbusmeters not for ***\*FHEM\****!! . smart-home-komponente.net can flash the firmware for wmbusmeters.

Details and Installation see: wmbusmeters-with-rtl-sdr.md

Docker + wmbusmeters with NANO-CUL (mbus) 868 Mhz

wmbusmeters docker is able to detect attachment and removal of wmbus dongles and to provide that functionality within docker image it must be started in privileged mode to have access to hosts /dev/ content.

see: https://hub.docker.com/r/weetmuts/wmbusmeters nanoCUL868

More Info see: Testcase Flash CUL-Stick

https://www.smart-home-komponente.de/nano-cul/nano-cul-868-extra/

Install dependencies

Integration

In the wmbusmeters reporting mode, data will be published to the MQTT broker topic "tele/wasser/verbrauch".

This data can be subscribed to and processed by other applications. From this point forward your options are endless. Example for simple mode - publish all smartmeter display data:

{
    "media": "water",
    "meter": "izar",
    "name": "watermeter",
    "id": "1231150",
    "total_m3": 166.625,
    "last_month_total_m3": 162.614,
    "last_month_measure_date": "2020-07-01",
    "remaining_battery_life_y": 13,
    "current_alarms": "no_alarm",
    "previous_alarms": "no_alarm",
    "timestamp": "2020-07-16T11:32:38Z"
}

ha-watermeter

A simple Linux python script to query arbitrary smartmeter water sensor devices and send the data to an MQTT broker, e.g., the famous Eclipse Mosquitto. After data made the hop to the MQTT broker it can be used by home automation software, like openHAB or Home Assistant.

Installation ha-watermeter Version 1.0.1

On a modern Linux system just a few steps are needed to get the daemon working. The following example shows the installation under Debian/Raspbian below the /opt directory:

$ git clone https://github.com/zibous/ha-watermeter.git /opt/ha-watermeter
$ cd /opt/ha-watermeter
$ sudo pip3 install -r requirements.txt

To match personal needs, all operation details can be configured using the file config.py The file needs to be created first:

$ cd /opt/ha-watermeter
$ cp config.py.dist config.py
$ nano config.py

$ chmod +x app.py
$ python3 app.py  ## or ./app.py

Application log

logging

Continuous Daemon/Service

You most probably want to execute the program continuously in the background. This can be done either by using the internal daemon or cron.

Attention: Daemon mode must be enabled in the configuration file (default).

  1. Systemd service - on systemd powered systems the recommended option

    sudo cp /opt/ha-watermeter/service.template /etc/systemd/system/ha-watermeter.service
    
    sudo systemctl daemon-reload
    sudo systemctl start ha-watermeter.service
    sudo systemctl status ha-watermeter.service
    
    sudo systemctl enable ha-watermeter.service

Results Homeassistant Card

ha-card

Sensor setting see: smartmeter-watermeter.yaml


Buy Me A Coffee

For more information see:

https://osmocom.org/projects/rtl-sdr/wiki/Rtl-sdr
https://github.com/xaelsouth/rtl-wmbus
https://github.com/weetmuts/wmbusmeters
https://github.com/ZeWaren/izar-prios-smart-meter-collector

## DVB-T receiver or Nano CUL Adapter
https://www.amazon.de/Tragbarer-Mini-Digitaler-TV-Stock-Unterst%C3%BCtzung-SDR-Stimmer-Empf%C3%A4nger/dp/B013Q94CT6/ref=sr_1_2?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=3F9GCJKEPPNO7&dchild=1&keywords=dvbt+dongle&qid=1594904776&sprefix=dvbt+dong%2Caps%2C184&sr=8-2
https://www.smart-home-komponente.de/nano-cul/nano-cul-868-extra/

https://www.diehl.com/metering/en/portfolio/software-system-components/software-system-components-products/software-system-components-product/izar-radio-compact-hall/74843/

About

Data provider for smartmeter watermeter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%