Open Anoxym opened 5 days ago
99% to yes
Great thanks I'll try :)
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...
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 ?
Please read informations on my main repo page. Minimal YAML is described there.
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 ?
I have the same error :
Userfriendly solution is ongoing:
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 ?
[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" ?
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:
priority: 800 then:
on_shutdown: priority: 700 then:
esp32: board: az-delivery-devkit-v4 framework: type: arduino
external_components:
source: github://SzczepanLeon/esphome-components@main refresh: 0s components: [wmbus]
source: type: local path: custom_components components: [backup]
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:
platform: sntp id: time_sntp timezone: Europe/Berlin servers:
on_time_sync: then:
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:
platform: template name: Device Boot Counter reset turn_on_action: then:
platform: restart name: "Device Restart" id: restart_switch
sensor:
platform: wmbus
meter_id: !secret watermeterId type: izar add_prefix: false
lqi: id: wmbus_cc1101_lqi name: "Watermeter CC1101 LQI" entity_category: "diagnostic" unit_of_measurement: "lqi" state_class: "measurement"
rssi: id: wmbus_cc1101_rssi name: "Watermeter CC1101 RSSI" unit_of_measurement: "dbm" entity_category: "diagnostic"
total_water_m3: name: "Watermeter display" id: "waterdisplay" unit_of_measurement: "m³" state_class: total_increasing device_class: "water" accuracy_decimals: 3 icon: mdi:counter
current_month_total_water_l: name: "Water current month" id: "watermonth" accuracy_decimals: 2 unit_of_measurement: "L" state_class: total_increasing device_class: "water"
last_month_total_water_m3: name: "Watermeter last month" id: "waterdisplay_lastmonth" unit_of_measurement: "m³" state_class: total_increasing device_class: "water" accuracy_decimals: 3
remaining_battery_life_y: name: "Watermeter Battery Life" id: "watermeter_batterie" entity_category: "diagnostic" icon: mdi:battery
transmit_period_s: name: "Watermeter transmit periode" id: "watermeter_last_reading" entity_category: "diagnostic" icon: mdi:timelapse
current_alarms: id: "watermeter_current_alarms" name: "Watermeter current alarm" entity_category: "diagnostic" icon: mdi:alarm-light
previous_alarms: id: "watermeter_prev_alarms" name: "Watermeter previous alarm" entity_category: "diagnostic" icon: mdi:alarm-light
platform: wifi_signal id: wifi_signal_db update_interval: 60s internal: true disabled_by_default: true
platform: copy source_id: wifi_signal_db name: "Device WLAN RSSI" filters:
platform: template name: Device Boot counter id: bootcounter accuracy_decimals: 0 state_class: "measurement" entity_category: "diagnostic" lambda: return (id(boot_counter));
platform: template name: "Device Last Boot" disabled_by_default: true id: device_lastBoot_time icon: mdi:clock-start
`
There is errors and I don't know why, maybe esphome can't get to wmbus ? :
source: github://SzczepanLeon/esphome-components@main
If you want to stay with this YAML format, then replace main with version_3
Same errors but the url with @version_3 works
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 :
Hi,
Is this project could work with this water meter :
Thanks