Giter Club home page Giter Club logo

Comments (17)

zibous avatar zibous commented on June 18, 2024
  • Looking for ELECHOUSE_CC1101_SRC_DRV.h dependency? Check our library registry!

ELECHOUSE_CC1101 is loaded by the wmbus lib from Szczepan Leon.
I would first try using the ESP Dashboard with a “clean build” (deletes all loaded libs from the project).

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

Tried doing that again.
I even removed all sensors and any stuff that might cause errors from the code.

Here's my current configuration:

`esphome:
name: esp-wmbus

esp8266:
board: d1_mini

Enable logging

logger:
level: DEBUG

Enable Home Assistant API

api:
password: "redacted"

ota:
password: "redacted"

wifi:
ssid: "redacted"
password: "redacted"

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: "Esp-Wmbus Fallback Hotspot"
password: "redacted"

captive_portal:
web_server:
port: 80

time:

  • platform: sntp
    id: time_sntp

external_components:

  • source: github://SzczepanLeon/esphome-components@main
    components: [wmbus]

wmbus:
mosi_pin: GPIO13
miso_pin: GPIO5
clk_pin: GPIO2
cs_pin: GPIO14
gdo0_pin: GPIO15
gdo2_pin: GPIO16

led_pin: GPIO0
led_blink_time: "1s"

`

Here's the log from install:

`INFO Reading configuration /config/esphome/11.yaml...

INFO Detected timezone 'Europe/Dublin'

INFO Generating C++ source...

INFO Compiling app...

Processing esp-wmbus (board: d1_mini; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)


HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash

LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf

Library Manager: Installing git+https://github.com/SzczepanLeon/wMbus-lib#1.2.22

git version 2.30.2

Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-pfbf61rp'...

Note: switching to '343d0f58339f2fc4062c8306e94a34efedff2e55'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -c with the switch command. Example:

  git switch -c

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Library Manager: wMbus-lib @ 1.2.22+sha.343d0f5 has been installed!

Library Manager: Installing dependencies...

Library Manager: Installing SPI @ *

Warning! Please upgrade to the PlatformIO Core 6

Library Manager: Installing git+https://github.com/SzczepanLeon/wmbus-drivers#1.0.4

git version 2.30.2

Cloning into '/data/cache/platformio/cache/tmp/pkg-installing-c0e_88q2'...

Note: switching to '1339790704aabbb612083ef661947c39b206951a'.

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -c with the switch command. Example:

  git switch -c

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Library Manager: wmbus-drivers @ 0.0.0+20230913102556.sha.1339790 has been installed!

Dependency Graph

|-- 1.2.3

|-- 2.1.0

|   |-- 1.2.3

|   |-- 1.0

|   |-- 1.0

|-- 1.1.1

|-- 1.0

|-- 1.2

|-- 6.18.5

|-- 1.2.22+sha.343d0f5

|   |-- 1.0

|-- 0.0.0+20230913102556.sha.1339790

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/api_connection.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/api_frame_helper.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/api_pb2.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/api_pb2_service.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/api_server.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/list_entities.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/proto.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/subscribe_state.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/api/user_services.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/captive_portal/captive_portal.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/esp8266/core.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/esp8266/gpio.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/esp8266/preferences.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/json/json_util.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/logger/logger.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/md5/md5.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/mdns/mdns_component.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/mdns/mdns_esp8266.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/mdns/mdns_esp_idf.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/network/util.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/ota/ota_backend_esp_idf.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/ota/ota_component.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/sensor/automation.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/sensor/filter.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/sensor/sensor.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/sntp/sntp_component.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/socket/bsd_sockets_impl.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/socket/socket.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/text_sensor/filter.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/text_sensor/text_sensor.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/time/automation.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/time/real_time_clock.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/web_server/list_entities.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/web_server/web_server.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/web_server_base/web_server_base.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/wifi/wifi_component.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/wifi/wifi_component_esp8266.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/components/wmbus/wmbus.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/application.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/color.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/component.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/component_iterator.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/controller.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/entity_base.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/helpers.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/log.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/scheduler.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/esphome/core/util.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/src/main.cpp.o

Generating LD script /data/esp-wmbus/.pioenvs/esp-wmbus/ld/local.eagle.app.v6.common.ld

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/ESPAsyncTCP-esphome/SyncClient.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/ESPAsyncTCP-esphome/tcp_axtls.c.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libaf0/Hash/Hash.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o

Archiving /data/esp-wmbus/.pioenvs/esp-wmbus/lib975/libESPAsyncTCP-esphome.a

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o

Archiving /data/esp-wmbus/.pioenvs/esp-wmbus/libaf0/libHash.a

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFi.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiAP.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiMulti.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiSTA.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/ESP8266WiFiScan.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/WiFiClient.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/WiFiServer.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/WiFiUdp.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/ESP8266WiFi/enable_wifi_at_boot_time.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o

Archiving /data/esp-wmbus/.pioenvs/esp-wmbus/lib67b/libESP8266WiFi.a

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/WebHandlers.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/WebRequest.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/WebResponses.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/ESPAsyncWebServer-esphome/WebServer.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libecb/DNSServer/DNSServer.cpp.o

Archiving /data/esp-wmbus/.pioenvs/esp-wmbus/libecb/libDNSServer.a

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/ESP8266mDNS.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/LEAmDNS.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/LEAmDNS_Control.cpp.o

Archiving /data/esp-wmbus/.pioenvs/esp-wmbus/libc74/libESPAsyncWebServer-esphome.a

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/LEAmDNS_Helpers.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/LEAmDNS_Structs.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib3ff/ESP8266mDNS/LEAmDNS_Transfer.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/libf5a/SPI/SPI.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/3outof6.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/aes.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/crc.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/mbus_packet.cpp.o

Compiling /data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/rf_mbus.cpp.o

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



    8 | #include <ELECHOUSE_CC1101_SRC_DRV.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

*** [/data/esp-wmbus/.pioenvs/esp-wmbus/lib523/wMbus-lib/rf_mbus.cpp.o] Error 1

========================= [FAILED] Took 56.51 seconds =========================

`

Hopefully this will be of some use.

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

@Woodpeckercz

Which esphome (docker, system) installation and which version do you use ?

I use:

ESPHome by Nabu Casa with docker | Fund development | 2023.8.3

Normally all required libs are managed and loaded by the wmbus component.
Except there is not enough storage space or permission problems or the internet connection is bad.

One attempt (not pretty, but worth testing) would be to load the SmartRC-CC1101 Driver Lib via the ESPHome configuration.

esphome:
    ....
    ....
    libraries:
        - SPI
        - "SmartRC-CC1101-Driver-Lib"

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

Thanks,
It still didn't work. There has to be something wrong with my esphome(addon) in the homeassistant (esphome version 2022.3.1).
I installed the cli esphome on windows and the file compiled and flashed fine.

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

I'm getting some error in the log now, error decoding ?

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

It still didn't work. There has to be something wrong with my esphome(addon) in the homeassistant (esphome version 2022.3.1).

Yes, that can be the problem and that is the reason why I run ESPHOME in a Docker container on my Linux machine.

#!/bin/bash

# ---------------------------------------------
# sudo bash esphome.sh
# see: https://hub.docker.com/r/esphome/esphome
# ----------------------------------------------

IDu=$(id -u) # UID
IDg=$(id -g) # GID

CURRENTURL=http://$(hostname).$(dnsdomainname)
DOCKERIMAGE=esphome/esphome:latest
CONTAINERLABEL=esphome
APPSDATA=$PWD${DOCKER_APPSDIR}${CONTAINERLABEL}
DOCKER_TIMEZONE=Europe/Berlin

mkdir -p ${APPSDATA}

echo "Try to remove previuos installation ${CONTAINERLABEL}..."
docker stop ${DOCKERIMAGE} && docker rm ${DOCKERIMAGE}

echo "Install Docker container ${CONTAINERLABEL}."
docker run --detach \
  --name ${CONTAINERLABEL} \
  --privileged=true \
  --env TZ=${DOCKER_TIMEZONE} \
  --restart unless-stopped \
  --volume /run/udev:/run/udev \
  --volume /etc/localtime:/etc/localtime:ro \
  --volume ${APPSDATA}/config:/config \
  --network host \
  ${DOCKERIMAGE}

echo "Docker container ${CONTAINERLABEL} ready."
echo "Run WEBGUI: ${CURRENTURL}:6052"

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

I'm getting some error in the log now, error decoding ?

Frist try the simple version:

## ------------------------------------------------------------------
## WMBUS METER D1 MINI + CC1101 for Diehl IZAR RC 868 I R4 PL
## HARDWARE: D1 MINI ESP8266 80MHz, 80KB RAM, 4MB Flash
##
## CC1101 TESTCASE FOR ALL WATERMETERS
## DO NOT USE THIS CONFIGURATION FOR PRODUCTION
##
##   1. uses esphome-components latest version from github
##   2. uses syslog component  (optional)
##      tail -f /var/log/syslog | grep "water-meter"
##
## This version shows data from the all watermeters.
## Use this for frist test to find your watermeterID.
##
## ------------------------------------------------------------------
substitutions:

  ## device settings
  device_name_short: "water-meter-dmini"
  device_description: "TEST: Wasserzähler Wemos D1 Min, CUL - CC1101, IZAR module (Diehl IZAR RC 868 I R4 PL (SzczepanLeon) - find watermeters"
  projectname: "Diehl IZAR RC 868.Watermeter-Test"
  appversion: "2.0.8"

  ## all watermeters wmid: "0"
  ## your watermeter: wmid: !secret watermeterId
  wmid: "0"
  
  ## logger settings, use DEBUG or VERBOSE to see the telegram data
  log_level: "VERBOSE"    # In production mode use "WARN"
  log_wmbus: "VERBOSE"    # Loglevel for wmbus meters component
  log_baudrate: "0"     # Disable uart logger messages log baudrate=0

## ----------------------------------------------------------------
## HARDWARE: WEMOS D1 MINI ESP8266 80MHz, 80KB RAM, 4MB Flash
## ----------------------------------------------------------------
# wemmos D1 Mini  = d1_mini
# D1 mit externer Antenne = d1_mini_pro
# esp01 mit 1MB Speicher = esp01_1m
esp8266:
  board: d1_mini
  restore_from_flash: true

preferences:
  flash_write_interval: 1min

## ---------------------------------------------------
## ESPHOME Configuration
## ---------------------------------------------------
esphome:
  name: ${device_name_short}
  comment: ${device_description}
  # Automatically add the mac address to the name
  # so you can use a single firmware for all devices
  name_add_mac_suffix: false
  project:
    name: ${projectname}
    version: ${appversion}
  build_path: ./build/${device_name_short}
  on_boot:
      then:
        - globals.set:
            id: boot_counter
            value: !lambda "return id(boot_counter)+=1;"
        - logger.log:
            level: WARN
            tag: "system"
            format: "BOOTMESSAGE:${device_name_short} API is connected, Device ready!"
        - component.update: bootcounter

  on_shutdown:
    then:
      - logger.log:
          level: ERROR
          tag: "system"
          format: "BOOTMESSAGE:${device_name_short} is down!"

## ---------------------------------------------------
## External components
## ---------------------------------------------------
external_components:
  # uses the latest version from SzczepanLeon
  # https://github.com/SzczepanLeon/esphome-components
  # You can make ESPHome check the repository every time by setting this option to 0s
  - source: github://SzczepanLeon/esphome-components@main
    refresh: 0s
    components: [wmbus]

## ---------------------------------------------------
## Global variables
## ---------------------------------------------------
globals:
  - id: boot_counter
    type: int
    restore_value: yes
    initial_value: "0"

## ---------------------------------------------------
## WIFI Settings 3 wifis
## ---------------------------------------------------
wifi:
  networks:
    - ssid: !secret ssid3_name
      password: !secret ssid3_pswd
      priority: 0
    - ssid: !secret ssid1_name
      password: !secret ssid1_pswd
      priority: 1
    - ssid: !secret ssid2_name
      password: !secret ssid2_pswd
      priority: 2
  domain: !secret domain

## ---------------------------------------------------
## mDNS Component
## ---------------------------------------------------
mdns:
  # if mDNS is disabled, they will no longer be able to automatically find your devices.
  disabled: false

# The captive portal component in ESPHome is a fallback mechanism for
# when connecting to the configured WiFi fails.
captive_portal:

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

## ---------------------------------------------------
## DEBUG COMPONENT
## ---------------------------------------------------
debug:
  update_interval: 5s

## ---------------------------------------------------
## OTA COMPONENT
## ---------------------------------------------------
ota:
  password: !secret ota_pswd
  safe_mode: false
  on_begin:
    then:
      - logger.log:
          format: "OTA Start"
          tag: "OTA"
          level: WARN
  on_progress:
    then:
      - logger.log:
          level: WARN
          tag: "OTA"
          format: "OTA progress %0.1f%%"
          args: ["x"]
  on_end:
    then:
      - logger.log:
          format: "OTA End"
          tag: "OTA"
          level: WARN
  on_error:
    then:
      - logger.log:
          format: "OTA update error %d"
          tag: "OTA"
          level: ERROR
          args: ["x"]

## ---------------------------------------------------
## COMPONENT WEBSERVER
## ---------------------------------------------------
web_server:
  port: 80

## ---------------------------------------------------
## SNTP Time server
## ---------------------------------------------------
time:
  - platform: sntp
    id: time_sntp
    timezone: Europe/Berlin
    servers:
      - 0.at.pool.ntp.org
      - 0.pool.ntp.org
      - 1.pool.ntp.org
    on_time_sync:
      # Components should trigger on_time_sync when they update the system clock.
      then:
        - if:
            condition:
              lambda: 'return id(device_lastBoot_time).state == "";'
            then:
              - text_sensor.template.publish:
                  id: device_lastBoot_time
                  state: !lambda return id(time_sntp).now().strftime("%Y-%m-%dT%H:%M:%S %Z");
        - logger.log:
            level: WARN
            tag: "system"
            format: "Synchronized sntp clock"

## ---------------------------------------------------
##        WMBUS DEVICE D1MINI WEMOS --> CC1101
## ---------------------------------------------------
##
##               GDO0
##                 o
##                 7
##                 | GD02         ╭-------o 2 (GND)
##                 |  6
##                 |  o           |
##                 |  |           |
##        ╭――x――x――o――o――x――x――x――o――╮
##        │       D1  D2          -  │
##        │                          │
##        │       D1MINI WEMOS       │
##   ANT  │                          │ USB
##        │                          │
##        │           D5 D6 D7 D8 +  │
##        ╰――x――x――x――o――o――o――o――o――╯
##                    |  |  |  |  |
##                    |  |  |  |  ╰-----o  1 (+3.3V)
##                    |  o  |  o
##                    |  5  |  8
##                    | MISO| CSN
##                    o     o
##                    4     3
##                   CLK   MOSI
##
## --------------------------------------------------
wmbus:
  mosi_pin: GPIO13  #D7  MOSI Attached to Hardware SPI controller MOSI SPI Interface
  miso_pin: GPIO12  #D6  MISO Attached to Hardware SPI controller MISO SPI Interface
  clk_pin: GPIO14   #D5  SCK  Attached to Hardware SPI controller CLK
  cs_pin: GPIO15    #D8  CSN  Attached to Hardware SPI controller, Controls Boot Mode; CS SPI Interface 10k Pull-Down, boot fails if pulled high !!!
  gdo0_pin: GPIO04  #D1  SDA  Clock output. High Impedance !
  gdo2_pin: GPIO05  #D2  SCL  FIFO status signals. High Impedance !

  # log_unknown (Optional): Show telegrams from not configured meters in log. Defaults to False
  log_unknown: True


## ---------------------------------------------------
## SENSORS
## ---------------------------------------------------
sensor:

  - platform: wmbus
    # Meter ID (usually from sticker). Can be specified as decimal or hex.
    # only hex is working for my watermeter !
    # see: https://github.com/SzczepanLeon/esphome-components/issues/6
    # edit watermeterid in the secrets file
    ## settings to add the watermeterid to the lqi, rssi and total_water_m3
    meter_id: ${wmid}
    type: izar
    add_prefix: true

    # The LQI value reported by the CC1101 is a 7 bit unsigned number with a range from 0 to 127.
    # Note that a lower value indicates a better link.
    # The LQI of a received packet will be bad (higher number) when there is lot of interference.
    lqi:
      name: "CC1101 LQI"
      id: wmbus_cc1101_lqi
      entity_category: "diagnostic"
      state_class: "measurement"
      unit_of_measurement: "lqi"

    # The RSSI value reported by the CC1101 is a 8 bit signed number with an effective
    # range from -138 dBm to -10.5 dBm when the CC1101 is operating around 868 MHz.
    # RSSI stands for received signal strength (power) indication (in dBm).
    # A higher value indicates higher power. (internal only)
    rssi:
      name: "CC1101 RSSI"
      id: wmbus_cc1101_rssi
      unit_of_measurement: "dBm"
      icon: mdi:rss
      state_class: "measurement"
      entity_category: "diagnostic"

  # Wifi quality RSSI (%)
  - platform: wifi_signal
    name: Device WLAN Signal
    id: wifi_signal_db
    update_interval: 60s
    filters:
      - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
    entity_category: "diagnostic"
    unit_of_measurement: "%"

  # The debug component can be used to debug problems with ESPHome.
  # At startup, it prints a bunch of useful information like reset reason,
  # free heap size, ESPHome version and so on.
  - platform: debug

    #  Reports the free heap size in bytes.
    free:
      name: "Heap Free"
      entity_category: "diagnostic"

    # Reports the fragmentation metric of the heap (0% is clean, more than ~50% is not harmless).
    fragmentation:
      name: "Heap Fragmentation"
      entity_category: "diagnostic"

    # Reports the largest contiguous free RAM block on the heap in bytes.
    block:
      name: "Heap Max Block"
      entity_category: "diagnostic"

    # Reports the longest time between successive iterations of the main loop.
    loop_time:
      name: "Application Loop Time"
      entity_category: "diagnostic"

  # device boot counter
  - platform: template
    name: Boot counter
    id: bootcounter
    accuracy_decimals: 0
    state_class: "measurement"
    entity_category: "diagnostic"
    lambda: |-
      return (id(boot_counter));

## ---------------------------------------------------
## SWITCHES
## ---------------------------------------------------
switch:
  # reset boot counter value
  - platform: template
    name: Boot Counter reset
    turn_on_action:
      then:
        - lambda: |-
            id(boot_counter) = 0;
            id(bootcounter).publish_state(id(boot_counter));
        - logger.log:
            level: WARN
            tag: "system"
            format: "${device_name_short} reset boot counter o.k!"
        - component.update: bootcounter

  # restart device
  - platform: restart
    name: "Restart device"
    id: restart_switch

  # save device boot (develop only)
  - platform: safe_mode
    name: "Restart (Safe Mode)"

  # reset the device to factory reset (develop only)
  - platform: factory_reset
    icon: mdi:lock-reset
    name: Restart factory default

## ---------------------------------------------------
## TEXT SENSORS
## ---------------------------------------------------
text_sensor:
  - platform: debug
    # Reports the device information:
    device:
      name: "Device Info"
      entity_category: "diagnostic"
    # Reports the last reboot reason in a human-readable form.
    reset_reason:
      name: "Reset Reason"
      entity_category: "diagnostic"

  # Last boot timestamp
  - platform: template
    name: "Last Boot timestamp"
    disabled_by_default: true
    id: device_lastBoot_time
    icon: mdi:clock-start

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

@Woodpeckercz

Here you can test firmware. I would flash with "ESPHOME Flasher".

Firmware : https://github.com/zibous/ha-watermeter/tree/master/esphome/testcases

ESPHOME Flasher: https://github.com/esphome/esphome-flasher/releases

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

Ok, I flashed the code from earlier as I 'm not currently at home so I did it remotely.
How do i access the logs?
Thx

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

How do i access the logs?

On ESPHome select the device and "LOGS".

Bildschirmfoto 2023-09-14 um 16 43 23

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

only realised it after I posted the question.

[W][component:204]: Component debug took a long time for an operation (0.10 s).
[W][component:205]: Components should block for at most 20-30ms.
wMBus-lib: Processing T1 A frame
wMBus-lib: Error during decoding '3 out of 6'

[V][sensor:043]: 'Heap Free': Received new state 25288.000000
[D][sensor:093]: 'Heap Free': Sending state 25288.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 76 bytes
[V][sensor:043]: 'Heap Max Block': Received new state 22192.000000
[D][sensor:093]: 'Heap Max Block': Sending state 22192.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Heap Fragmentation': Received new state 3.000000
[D][sensor:093]: 'Heap Fragmentation': Sending state 3.00000 % with 1 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Application Loop Time': Received new state 117.000000
[D][sensor:093]: 'Application Loop Time': Sending state 117.00000 ms with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 84 bytes
[W][component:204]: Component debug took a long time for an operation (0.10 s).
[W][component:205]: Components should block for at most 20-30ms.
[V][sensor:043]: 'Heap Free': Received new state 25280.000000
[D][sensor:093]: 'Heap Free': Sending state 25280.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 76 bytes
[V][sensor:043]: 'Heap Max Block': Received new state 22192.000000
[D][sensor:093]: 'Heap Max Block': Sending state 22192.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Heap Fragmentation': Received new state 3.000000
[D][sensor:093]: 'Heap Fragmentation': Sending state 3.00000 % with 1 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Application Loop Time': Received new state 117.000000
[D][sensor:093]: 'Application Loop Time': Sending state 117.00000 ms with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 84 bytes
[W][component:204]: Component debug took a long time for an operation (0.10 s).
[W][component:205]: Components should block for at most 20-30ms.
wMBus-lib: Processing T1 A frame
wMBus-lib: Error during decoding '3 out of 6'

[V][sensor:043]: 'Heap Free': Received new state 23544.000000
[D][sensor:093]: 'Heap Free': Sending state 23544.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 76 bytes
[V][sensor:043]: 'Heap Max Block': Received new state 22192.000000
[D][sensor:093]: 'Heap Max Block': Sending state 22192.00000 B with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Heap Fragmentation': Received new state 2.000000
[D][sensor:093]: 'Heap Fragmentation': Sending state 2.00000 % with 1 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 80 bytes
[V][sensor:043]: 'Application Loop Time': Received new state 117.000000
[D][sensor:093]: 'Application Loop Time': Sending state 117.00000 ms with 0 decimals of accuracy
[V][json:036]: Attempting to allocate 512 bytes for JSON serialization
[V][json:056]: Size after shrink 84 bytes
[W][component:204]: Component debug took a long time for an operation (0.10 s).
[W][component:205]: Components should block for at most 20-30ms.

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

But this is not the test version because the logging is not filtered. The log lines are important when booting, they show whether the CC1101 is connected correctly and is working .

Log Filter:

## ---------------------------------------------------
## LOGGER COMPONENT
## ---------------------------------------------------
logger:
  id: appslogger
  level: "VERBOSE"
  baud_rate: "0"
  logs:
    wmbus: "VERBOSE"
    wMBus-lib: "VERBOSE"
    sensor: WARN
    sensor.filter: WARN
    text_sensor: WARN
    api.service: ERROR
    json: ERROR
    mqtt: WARN
    scheduler: ERROR
    wifi: WARN
    component: ERROR
    api: WARN

Log Testversion:

INFO ESPHome 2023.8.3
INFO Reading configuration /config/wm-d1mini-izar-test.yaml...
INFO Updating https://github.com/SzczepanLeon/esphome-components.git@main
INFO Starting log output from water-meter-izar-test.local using esphome API
INFO Successfully connected to water-meter-izar-test.local
[17:16:18][I][app:102]: ESPHome version 2023.8.3 compiled on Sep 14 2023, 14:22:35
[17:16:18][I][app:104]: Project Diehl_IZAR_RC_868.Watermeter version 2.0.9
[17:16:18][C][logger:301]: Logger:
[17:16:18][C][logger:302]:   Level: VERBOSE
[17:16:18][C][logger:303]:   Log Baud Rate: 0
[17:16:18][C][logger:305]:   Hardware UART: UART0
[17:16:18][C][logger:309]:   Level for 'wmbus': VERBOSE
[17:16:18][C][logger:309]:   Level for 'wMBus-lib': VERBOSE
[17:16:18][C][logger:309]:   Level for 'sensor': WARN
[17:16:18][C][logger:309]:   Level for 'sensor.filter': WARN
[17:16:18][C][logger:309]:   Level for 'text_sensor': WARN
[17:16:18][C][logger:309]:   Level for 'api.service': ERROR
[17:16:18][C][logger:309]:   Level for 'json': ERROR
[17:16:18][C][logger:309]:   Level for 'mqtt': WARN
[17:16:18][C][logger:309]:   Level for 'scheduler': ERROR
[17:16:18][C][logger:309]:   Level for 'wifi': WARN
[17:16:18][C][logger:309]:   Level for 'component': ERROR
[17:16:18][C][logger:309]:   Level for 'api': WARN
[17:16:18][C][restart:068]: Restart Switch 'Restart Device'
[17:16:18][C][restart:070]:   Icon: 'mdi:restart'
[17:16:18][C][restart:090]:   Restore Mode: always OFF
[17:16:18][C][safe_mode_switch:068]: Safe Mode Switch 'Restart (Safe Mode)'
[17:16:18][C][safe_mode_switch:070]:   Icon: 'mdi:restart-alert'
[17:16:18][C][safe_mode_switch:090]:   Restore Mode: always OFF
[17:16:18][C][factory_reset.switch:068]: Factory Reset Switch 'Restart factory default'
[17:16:18][C][factory_reset.switch:070]:   Icon: 'mdi:lock-reset'
[17:16:18][C][factory_reset.switch:090]:   Restore Mode: always OFF
[17:16:18][C][captive_portal:088]: Captive Portal:
[17:16:18][C][web_server:161]: Web Server:
[17:16:18][C][web_server:162]:   Address: water-meter-izar-test.local:80
[17:16:18][C][sntp:053]: SNTP Time:
[17:16:18][C][sntp:054]:   Server 1: '0.at.pool.ntp.org'
[17:16:18][C][sntp:055]:   Server 2: '0.pool.ntp.org'
[17:16:18][C][sntp:056]:   Server 3: ''
[17:16:18][C][sntp:057]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[17:16:18][C][mdns:112]: mDNS:
[17:16:18][C][mdns:113]:   Hostname: water-meter-izar-test
[17:16:18][V][mdns:114]:   Services:
[17:16:18][V][mdns:116]:   - _esphomelib, _tcp, 6053
[17:16:18][V][mdns:118]:     TXT: version = 2023.8.3
[17:16:18][V][mdns:118]:     TXT: mac = 483fda510e55
[17:16:18][V][mdns:118]:     TXT: platform = ESP8266
[17:16:18][V][mdns:118]:     TXT: board = d1_mini
[17:16:18][V][mdns:118]:     TXT: network = wifi
[17:16:18][V][mdns:118]:     TXT: project_name = Diehl_IZAR_RC_868.Watermeter
[17:16:18][V][mdns:118]:     TXT: project_version = 2.0.9
[17:16:18][V][mdns:116]:   - _http, _tcp, 80
[17:16:18][C][ota:093]: Over-The-Air Updates:
[17:16:18][C][ota:094]:   Address: water-meter-izar-test.local:8266
[17:16:18][C][ota:097]:   Using Password.
[17:16:18][C][wifi_signal.sensor:009]: WiFi Signal 'Device WLAN RSSI Quality'
[17:16:18][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[17:16:18][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[17:16:18][C][wifi_signal.sensor:009]:   Unit of Measurement: '%'
[17:16:18][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[17:16:18][V][wifi_signal.sensor:009]:   Unique ID: '483fda510e55-wifisignal'
[17:16:18][C][wmbus:394]: wM-Bus v2.2.29:
[17:16:18][C][wmbus:411]:   CC1101 SPI bus:
[17:16:18][C][wmbus:412]:     MOSI Pin: GPIO13
[17:16:18][C][wmbus:413]:     MISO Pin: GPIO12
[17:16:18][C][wmbus:414]:     CLK Pin:  GPIO14
[17:16:18][C][wmbus:415]:     CS Pin:   GPIO15
[17:16:18][C][wmbus:416]:     GDO0 Pin: GPIO4
[17:16:18][C][wmbus:417]:     GDO2 Pin: GPIO5
[17:16:18][E][wmbus:430]:   Check connection to CC1101!

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

wMBus-lib: Processing T1 A frame
wMBus-lib: Error during decoding '3 out of 6'

see: SzczepanLeon/esphome-components#10

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

here's the log

[16:44:06]SDK:2.2.2-dev(38a443e)/Core:3.0.2=30002000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:6105635
[16:44:06][I][logger:262]: Log initialized
[16:44:06][I][app:029]: Running through setup()...
[16:44:06][V][app:030]: Sorting components by setup priority...
[16:44:06][D][template.switch:046]:   Restored state OFF
[16:44:06][D][switch:016]: 'Boot Counter reset' Turning OFF.
[16:44:06][W][system:066]: BOOTMESSAGE:water-meter-dmini API is connected, Device ready!
[16:44:06][V][wifi_esp8266:058]: Enabling STA.
[16:44:06]mode : sta(84:cc:a8:a1:06:7f)
[16:44:06]add if0
[16:44:06][V][wifi_esp8266:534]: Event: Changed Mode old=OFF new=STA
[16:44:06]wifi evt: 8
[16:44:06]sleep disable
[16:44:12]scandone
[16:44:12][V][wifi_esp8266:492]: Event: Changed AuthMode old=OPEN new=WPA2 PSK
[16:44:12]wifi evt: 2
[16:44:12]scandone
[16:44:13]state: 0 -> 2 (b0)
[16:44:13]state: 2 -> 3 (0)
[16:44:13]state: 3 -> 5 (10)
[16:44:13]add 0
[16:44:13]aid 36
[16:44:13]cnt
[16:44:13]
[16:44:13]connected with SDNet, channel 11
[16:44:13]dhcp client start...
[16:44:13][V][wifi_esp8266:468]: Event: Connected ssid='SDNet' bssid=66:22:32:F0:6D:32 channel=11
[16:44:13]wifi evt: 0
[16:44:15]ip:192.168.10.133,mask:255.255.255.0,gw:192.168.10.1
[16:44:15][V][wifi_esp8266:507]: Event: Got IP static_ip=192.168.10.133 gateway=192.168.10.1 netmask=255.255.255.0
[16:44:15]wifi evt: 3
[16:44:15][C][web_server:116]: Setting up web server...
[16:44:15][C][sntp:028]: Setting up SNTP...
[16:44:15][C][ota:093]: Over-The-Air Updates:
[16:44:15][C][ota:094]:   Address: water-meter-dmini.local:8266
[16:44:15][C][ota:097]:   Using Password.
[16:44:15]
[16:44:15]wMBus-lib: CC1101 version '20'
[16:44:15]wMBus-lib: CC1101 initialized
[16:44:15][I][app:062]: setup() finished successfully!
[16:44:15][I][app:102]: ESPHome version 2023.8.3 compiled on Sep 14 2023, 16:43:33
[16:44:15][I][app:104]: Project Diehl_IZAR_RC_868.Watermeter-Test version 2.0.8
[16:44:15][C][logger:301]: Logger:
[16:44:15][C][logger:302]:   Level: VERBOSE
[16:44:15][C][logger:303]:   Log Baud Rate: 115200
[16:44:15][C][logger:305]:   Hardware UART: UART0
[16:44:15][C][logger:309]:   Level for 'wmbus': VERBOSE
[16:44:15][C][logger:309]:   Level for 'wMBus-lib': VERBOSE
[16:44:15][C][logger:309]:   Level for 'sensor': WARN
[16:44:15][C][logger:309]:   Level for 'sensor.filter': WARN
[16:44:15][C][logger:309]:   Level for 'text_sensor': WARN
[16:44:15][C][logger:309]:   Level for 'api.service': ERROR
[16:44:15][C][logger:309]:   Level for 'json': ERROR
[16:44:15][C][logger:309]:   Level for 'mqtt': WARN
[16:44:15][C][logger:309]:   Level for 'scheduler': ERROR
[16:44:15][C][logger:309]:   Level for 'wifi': WARN
[16:44:15][C][logger:309]:   Level for 'component': ERROR
[16:44:15][C][logger:309]:   Level for 'api': WARN
[16:44:15][D][sntp:077]: Synchronized time: 2023-09-14 17:44:15
[16:44:15][W][system:209]: Synchronized sntp clock
[16:44:15][C][template.sensor:022]: Template Sensor 'Boot counter'
[16:44:15][C][template.sensor:022]:   State Class: 'measurement'
[16:44:15][C][template.sensor:022]:   Unit of Measurement: ''
[16:44:15][C][template.sensor:022]:   Accuracy Decimals: 0
[16:44:15][C][template.sensor:023]:   Update Interval: 60.0s
[16:44:16][C][template.text_sensor:020]: Template Sensor 'Last Boot timestamp'
[16:44:16][C][template.text_sensor:020]:   Icon: 'mdi:clock-start'
[16:44:16][C][template.switch:068]: Template Switch 'Boot Counter reset'
[16:44:16][C][template.switch:090]:   Restore Mode: always OFF
[16:44:16][C][template.switch:057]:   Optimistic: NO
[16:44:16][C][restart:068]: Restart Switch 'Restart device'
[16:44:16][C][restart:070]:   Icon: 'mdi:restart'
[16:44:16][C][restart:090]:   Restore Mode: always OFF
[16:44:16][C][safe_mode_switch:068]: Safe Mode Switch 'Restart (Safe Mode)'
[16:44:16][C][safe_mode_switch:070]:   Icon: 'mdi:restart-alert'
[16:44:16][C][safe_mode_switch:090]:   Restore Mode: always OFF
[16:44:16][C][factory_reset.switch:068]: Factory Reset Switch 'Restart factory default'
[16:44:16][C][factory_reset.switch:070]:   Icon: 'mdi:lock-reset'
[16:44:16][C][factory_reset.switch:090]:   Restore Mode: always OFF
[16:44:16][C][captive_portal:088]: Captive Portal:
[16:44:16][C][web_server:161]: Web Server:
[16:44:16][C][web_server:162]:   Address: water-meter-dmini.local:80
[16:44:16][C][sntp:053]: SNTP Time:
[16:44:16][C][sntp:054]:   Server 1: '0.at.pool.ntp.org'
[16:44:16][C][sntp:055]:   Server 2: '0.pool.ntp.org'
[16:44:16][C][sntp:056]:   Server 3: '1.pool.ntp.org'
[16:44:16][C][sntp:057]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[16:44:16][C][mdns:112]: mDNS:
[16:44:16][C][mdns:113]:   Hostname: water-meter-dmini
[16:44:16][V][mdns:114]:   Services:
[16:44:16][V][mdns:116]:   - _http, _tcp, 80
[16:44:16][C][ota:093]: Over-The-Air Updates:
[16:44:16][C][ota:094]:   Address: water-meter-dmini.local:8266
[16:44:16][C][ota:097]:   Using Password.
[16:44:16][C][wifi_signal.sensor:009]: WiFi Signal 'Device WLAN Signal'
[16:44:16][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[16:44:16][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[16:44:16][C][wifi_signal.sensor:009]:   Unit of Measurement: '%'
[16:44:16][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[16:44:16][V][wifi_signal.sensor:009]:   Unique ID: '84cca8a1067f-wifisignal'
[16:44:16][C][debug:056]: Debug component:
[16:44:16][C][debug:058]:   Device info 'Device Info'
[16:44:16][C][debug:058]:     Icon: 'mdi:chip'
[16:44:16][C][debug:061]:   Free space on heap 'Heap Free'
[16:44:16][C][debug:061]:     State Class: ''
[16:44:16][C][debug:061]:     Unit of Measurement: 'B'
[16:44:16][C][debug:061]:     Accuracy Decimals: 0
[16:44:16][C][debug:061]:     Icon: 'mdi:counter'
[16:44:16][C][debug:062]:   Largest free heap block 'Heap Max Block'
[16:44:16][C][debug:062]:     State Class: ''
[16:44:16][C][debug:062]:     Unit of Measurement: 'B'
[16:44:16][C][debug:062]:     Accuracy Decimals: 0
[16:44:16][C][debug:062]:     Icon: 'mdi:counter'
[16:44:16][C][debug:064]:   Heap fragmentation 'Heap Fragmentation'
[16:44:16][C][debug:064]:     State Class: ''
[16:44:16][C][debug:064]:     Unit of Measurement: '%'
[16:44:16][C][debug:064]:     Accuracy Decimals: 1
[16:44:16][C][debug:064]:     Icon: 'mdi:counter'
[16:44:16][D][debug:068]: ESPHome version 2023.8.3
[16:44:16][D][debug:072]: Free Heap Size: 25072 bytes
[16:44:16][D][debug:100]: Flash Chip: Size=4096kB Speed=40MHz Mode=DOUT
[16:44:16][D][debug:256]: Chip ID: 0x00A1067F
[16:44:16][D][debug:257]: SDK Version: 2.2.2-dev(38a443e)
[16:44:16][D][debug:258]: Core Version: 3.0.2
[16:44:16][D][debug:259]: Boot Version=31 Mode=1
[16:44:16][D][debug:260]: CPU Frequency: 80
[16:44:16][D][debug:261]: Flash Chip ID=0x001640D8
[16:44:16][D][debug:262]: Reset Reason: External System
[16:44:16][D][debug:263]: Reset Info: External System
[16:44:16][C][wmbus:394]: wM-Bus v2.2.29:
[16:44:16][C][wmbus:411]:   CC1101 SPI bus:
[16:44:16][C][wmbus:412]:     MOSI Pin: GPIO13
[16:44:16][C][wmbus:413]:     MISO Pin: GPIO12
[16:44:16][C][wmbus:414]:     CLK Pin:  GPIO14
[16:44:16][C][wmbus:415]:     CS Pin:   GPIO15
[16:44:16][C][wmbus:416]:     GDO0 Pin: GPIO4
[16:44:16][C][wmbus:417]:     GDO2 Pin: GPIO5
[16:44:16][C][wmbus:424]:   Available drivers:  amiplus, apator08, apator162, apatoreitn, bmeters, c5isf, compact5, dme07, elf, evo868, fhkvdataiii, hydrocalm3, hydrus, iperl, itron, izar, mkradio3, mkradio4, qheat, qwater, sharky774, topaseskr, ultrimis, unismart, vario451
[16:44:16][C][wmbus:442]:   Meter:
[16:44:16][C][wmbus:443]:     ID: 0 [0x00000000]
[16:44:16][C][wmbus:444]:     Type: izar
[16:44:16][C][wmbus:445]:     Mode: T1
[16:44:16][C][wmbus:446]:     Key: ''
[16:44:16][C][wmbus:448]:     Sensor '0x00 CC1101 LQI'
[16:44:16][C][wmbus:448]:       Device Class: 'signal_strength'
[16:44:16][C][wmbus:448]:       State Class: 'measurement'
[16:44:16][C][wmbus:448]:       Unit of Measurement: 'lqi'
[16:44:16][C][wmbus:448]:       Accuracy Decimals: 0
[16:44:16][C][wmbus:448]:     Sensor '0x00 CC1101 RSSI'
[16:44:16][C][wmbus:448]:       Device Class: 'signal_strength'
[16:44:16][C][wmbus:448]:       State Class: 'measurement'
[16:44:16][C][wmbus:448]:       Unit of Measurement: 'dBm'
[16:44:16][C][wmbus:448]:       Accuracy Decimals: 0
[16:44:16][C][wmbus:448]:       Icon: 'mdi:rss'
[16:44:22]wMBus-lib: Processing T1 A frame
[16:44:22]wMBus-lib:  Error during decoding '3 out of 6'
[16:44:23]fpm close 3
[16:44:23]pm open,type:0 0
[16:44:37]wMBus-lib: Processing T1 A frame
[16:44:37]wMBus-lib:  Error during decoding '3 out of 6'
[16:44:41]wMBus-lib: Processing T1 A frame
[16:44:41]wMBus-lib:  Error during decoding '3 out of 6'
[16:44:43][D][esp8266.preferences:238]: Saving preferences to flash...
[16:44:57]wMBus-lib: Processing T1 A frame
[16:44:57]wMBus-lib:  Error during decoding '3 out of 6'
[16:45:03]wMBus-lib: Processing T1 A frame
[16:45:03]wMBus-lib:  Error during decoding '3 out of 6'

from ha-watermeter.

zibous avatar zibous commented on June 18, 2024

ok. Log and init CC1101 looks good.
Actually, after a while you should get a telegram from your water meter or from another...

[16:44:37]wMBus-lib: Processing T1 A frame
[16:44:37]wMBus-lib:  Error during decoding '3 out of 6'

This message comes from the wmbus lib and does not necessarily have to be an error.
But in this case only Szczepan Leon/esphome can help you.

https://github.com/SzczepanLeon/esphome-components

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

Thanks for taking the time to help me with this.

from ha-watermeter.

Woodpeckercz avatar Woodpeckercz commented on June 18, 2024

ok it took about 30 minutes buy I finally got something.

[17:27:55][D][wmbus:179]: Meter ID [0xA0D7BAD3] RSSI: -90 dBm LQI: 130 Mode: T1 not found in configuration T: 2944304CD3BAD7A00604A231C500131A0633E9E98ED4A267007D510AEFF9EC5A05B298D85BD557ED13BC (42)

from ha-watermeter.

Related Issues (20)

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.