zibous / ha-watermeter

Data provider for smartmeter watermeter.
GNU General Public License v3.0
188 stars 28 forks source link

Compatibility with DIEHL LNE6250 #55

Open Anoxym opened 5 days ago

Anoxym commented 5 days ago

Hi,

Is this project could work with this water meter :

IMG_4927 IMG_4929

Thanks

SzczepanLeon commented 5 days ago

99% to yes

Anoxym commented 5 days ago

Great thanks I'll try :)

g0mml commented 5 days ago

I have the same meter as you and I was able to get the meter ID using the the 🛠 ESP32 Test configuration. The transmitted telegram contained all the data. I'll now try to use the more complete examples...

Anoxym commented 2 days ago

Hi,

I try to deploy the esp32 test on my esp32 with ESPHome on Home Assistant but it won't work, I don't understand, can we have a minimalist code to get the ID ?

Screenshot 2024-11-29 at 4 05 34 PM

SzczepanLeon commented 2 days ago

Please read informations on my main repo page. Minimal YAML is described there.

Anoxym commented 2 days ago

Did you have a working esphome configuration to get the ID ?

with this :

wmbus: all_drivers: True log_all: True

What did I need to get a working code ?

zibous commented 2 days ago

for izar watermeter:

https://github.com/zibous/ha-watermeter/blob/master/esphome/testcases/wm-esp32-izar-test.yaml

Anoxym commented 2 days ago

I have the same error :

Screenshot 2024-11-29 at 4 35 53 PM

SzczepanLeon commented 2 days ago

Userfriendly solution is ongoing:

20241127_163946.jpg

20241127_141517.jpg

Anoxym commented 2 days ago

It works adding "platform: esphome" :

ota: platform: esphome password: "wmi01-testcase" on_begin: then:

We need to be close to the watermeter to get ID ?

Anoxym commented 2 days ago

[17:17:14][V][rxLoop:167]: Have 56 bytes from CC1101 Rx, RSSI: -52 dBm LQI: 128 [17:17:14][D][mbus:034]: Processing T1 A frame [17:17:14][V][mbus:045]: Frame: 37271C99934D70D38B39638D4E3593966A6C4E6A535963565994DAB255A39ACA65CA538E2E969964EB1CA4E5A6D199AC8D965A9A62D3A72A (56) [RAW] [17:17:14][V][mbus:052]: Frame: 1E44A511412320217B079AF87AF700100576890BA8F9E9223F655284F20AC5A8B556AA37FE (37) [with CRC] [17:17:14][V][mbus:095]: Validating CRC for Block1 [17:17:14][V][crc:031]: calculated: 0x9AF8, read: 0x9AF8 [17:17:14][V][mbus:115]: Validating CRC for Block2 [17:17:14][V][crc:031]: calculated: 0xF20A, read: 0xF20A [17:17:14][V][mbus:115]: Validating CRC for Block3 [17:17:14][V][crc:031]: calculated: 0x37FE, read: 0x37FE [17:17:14][V][mbus:062]: Frame: 1E44A511412320217B077AF700100576890BA8F9E9223F655284C5A8B556AA (31) [without CRC] [17:17:14][D][wmbus:182]: Meter ID [0x21202341] RSSI: -52 dBm LQI: 128 Frame: T1 A not found in configuration T: 1E44A511412320217B077AF700100576890BA8F9E9223F655284C5A8B556AA (31) [17:17:28][V][rxLoop:167]: Have 56 bytes from CC1101 Rx, RSSI: -49 dBm LQI: 128 [17:17:28][D][mbus:034]: Processing T1 A frame [17:17:28][V][mbus:045]: Frame: 37271C99934D70D38B39638D4E3593966A6C4E6A535963565994DAB255A39ACA65CA538E2E969964EB1CA4E5A6D199AC8D965A9A62D3A72A (56) [RAW] [17:17:28][V][mbus:052]: Frame: 1E44A511412320217B079AF87AF700100576890BA8F9E9223F655284F20AC5A8B556AA37FE (37) [with CRC] [17:17:28][V][mbus:095]: Validating CRC for Block1 [17:17:28][V][crc:031]: calculated: 0x9AF8, read: 0x9AF8 [17:17:28][V][mbus:115]: Validating CRC for Block2 [17:17:28][V][crc:031]: calculated: 0xF20A, read: 0xF20A [17:17:28][V][mbus:115]: Validating CRC for Block3 [17:17:28][V][crc:031]: calculated: 0x37FE, read: 0x37FE [17:17:28][V][mbus:062]: Frame: 1E44A511412320217B077AF700100576890BA8F9E9223F655284C5A8B556AA (31) [without CRC] [17:17:28][D][wmbus:182]: Meter ID [0x21202341] RSSI: -49 dBm LQI: 128 Frame: T1 A not found in configuration T: 1E44A511412320217B077AF700100576890BA8F9E9223F655284C5A8B556AA (31) [17:17:31][D][esp32.preferences:114]: Saving 1 preferences to flash... [17:17:31][V][esp32.preferences:137]: NVS data not changed skipping 3484741779 len=7 [17:17:31][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed

Meter ID is 0x21202341 ? even if it says "T1 A not found in configuration T" ?

Anoxym commented 2 days ago

Can someone help me with the code :

` substitutions: device_name_short: "watermeter" device_description: "Wasserzähler ESP32, CUL - CC1101, IZAR module (Diehl IZAR RC 868 I R4 PL (SzczepanLeon) my Watermeter" projectname: "Diehl IZAR RC 868.Watermeter" appversion: "2.0.7"

log_level: "WARN" log_wmbus: "ERROR" log_baudrate: "0"

esphome: name: ${device_name_short} comment: ${device_description} name_add_mac_suffix: false project: name: ${projectname} version: ${appversion} build_path: ./build/${device_name_short} on_boot:

esp32: board: az-delivery-devkit-v4 framework: type: arduino

external_components:

backup: auth: username: "admin" password: "admin" force_update: false

globals:

wifi: networks:

mdns: disabled: false

captive_portal:

logger: id: appslogger level: ${log_level} baud_rate: ${log_baudrate} logs: wmbus: ${log_wmbus} wMBus-lib: ${log_wmbus}

ota: platform: esphome password: "OTAUpdates!!" on_begin: then:

web_server: port: 80 version: 2 js_url: !secret webserver_jsurl

api: id: espapi_wmbus_esp32 port: 6053 reboot_timeout: 0s

time:

wmbus: mosi_pin: GPIO23 ## SI miso_pin: GPIO19 ## SO clk_pin: GPIO18 ## SCLK cs_pin: GPIO05 ## CSN gdo0_pin: GPIO16 ## GD00 gdo2_pin: GPIO17 ## GD02

switch:

sensor:

`

There is errors and I don't know why, maybe esphome can't get to wmbus ? :

Screenshot 2024-11-29 at 9 02 33 PM

SzczepanLeon commented 2 days ago

source: github://SzczepanLeon/esphome-components@main

If you want to stay with this YAML format, then replace main with version_3

Anoxym commented 2 days ago

Same errors but the url with @version_3 works

Anoxym commented 2 days ago

I found the error and managed to upload the code to ESP. On Home Assistant I can show the Water meter but entities are Unknown :

Screenshot 2024-11-29 at 10 20 21 PM