Giter Club home page Giter Club logo

ha-watermeter's Introduction

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/

ha-watermeter's People

Contributors

zibous avatar trsqr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.