SzczepanLeon / esphome-components

150 stars 53 forks source link

[total_water_m3] is an invalid option for [sensor.wmbus]. Please check the indentation. #154

Closed gomble closed 22 hours ago

gomble commented 23 hours ago

I wanted to update my esphome device. I am getting following error in the code. How can i solve this ?

esphome:
  name: water
  friendly_name: water

esp8266:
  board: esp01_1m

# Enable logging
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
# Enable Home Assistant API
api:
  encryption:
    key: "------------------------------------"

ota:
  - platform: esphome
    password: "------------------------------------------"

wifi:
  ssid: !secret wifi_ssid_neu
  password: !secret wifi_password_neu
  domain: ".fritz.box"
  ap:
    password: !secret wifi_ap_password

captive_portal:

web_server:
  local: true

switch:
  - platform: restart
    name: "Restart water_funk"

text_sensor:
  - platform: version
    name: Water_Funk Version

time:
  - platform: sntp
    id: time_sntp

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

wmbus:
  frequency: 868.950
  mosi_pin: GPIO13
  miso_pin: GPIO12
  clk_pin:  GPIO14
  cs_pin:   GPIO15
  gdo0_pin: GPIO5
  gdo2_pin: GPIO4

  # led_pin: GPIO0
  # led_blink_time: "1s"

  clients:
    - name: "water_wmbusmeters"
      ip_address: "192.168.59.4"
      port: 7022
    - name: "wmbusmeters_udp"
      ip_address: "192.168.59.4"
      port: 7011
      #format: RTLWMBUS
      transport: UDP

sensor:
  - platform: wmbus
    meter_id: 0x22579461
    type: iperl
    key: "---------------------------"
    mode: T1
    lqi:
      name: "Wasser-Funk lqi"
    rssi:
      name: "Wasser-Funk RSSI"
    total_water_m3:
      name: "Wasser-Funk Zähler"

image

SzczepanLeon commented 22 hours ago

Read manual for version 4 or stay with v3, and correct YAML.