SzczepanLeon / esphome-components

150 stars 53 forks source link

[V4.0] ESPHome 2024.9.1 problem with compilation #122

Closed pepsonEL closed 1 month ago

pepsonEL commented 1 month ago

On new version ESPHome 2024.9.1 is a problem with compilation. INFO ESPHome 2024.9.1 INFO Reading configuration /config/esphome/wmbus.yaml... INFO Detected timezone 'Europe/Warsaw' Failed config

sensor.wmbus: [source /config/esphome/wmbus.yaml:82] platform: wmbus meter_id: xxxxxxx type: apator162 key: 00000000000000000000000000000000

[lqi] is an invalid option for [sensor.wmbus]. Please check the indentation. lqi: name: lqi

[rssi] is an invalid option for [sensor.wmbus]. Please check the indentation. rssi: name: RSSI

[total_water_m3] is an invalid option for [sensor.wmbus]. Please check the indentation. total_water_m3: name: Licznik wody filters:

SzczepanLeon commented 1 month ago

Please check new description. From version 4.0.0 YAML format was changed.

pepsonEL commented 1 month ago

ok i change config but tell me how create config for LQI ?

SzczepanLeon commented 1 month ago

There is no LQI available from 4.0.0 (at least right now).

pepsonEL commented 1 month ago

now my config look as:

sensor:
  - platform: wmbus
    meter_id: 0x000xxxxxxx
    type: apator162
    key: "00000000000000000000000000000000"
    sensors:
      - name: "Licznik wody RSSi"
        field: "rssi"
        accuracy_decimals: 0
        unit_of_measurement: "dBm"
        device_class: "signal_strength"
        state_class: "measurement"
        entity_category: "diagnostic"
      - name: "Licznik wody lqi"
        field: "lqi"
        accuracy_decimals: 0
        device_class: "signal_strength"
        state_class: "measurement"
        entity_category: "diagnostic"
      - name: "Licznik wody"
        field: "total"
        accuracy_decimals: 3
        unit_of_measurement: "m3"
        device_class: "water"
        state_class: "total_increasing"
        icon: "mdi:water"
        filters:
          offset: +1.221
     And now i can not add( no found) sensor total water to dashboard ENERGY in Home Assistant. No show me on scroll list.
SzczepanLeon commented 1 month ago

Try "m³".

pepsonEL commented 1 month ago

Still the same problem no show on scroll list in config dashboard energy.

SzczepanLeon commented 1 month ago

Please include VERBOSE logs.

pepsonEL commented 1 month ago

Now i change name sensor to be the same as before update to v4 and now is ok and show me data as old sensor.