mhendriks / esphome-p1

18 stars 12 forks source link

Gas usage reported as Water usage #6

Open tony-p opened 4 months ago

tony-p commented 4 months ago

I have the p1 dongle pro attached to an ESMR 5 meter (NL) and the gas delivered reports NA, and the water usage reports the gas usage. (I'm pretty new to HA and ESPhome) but as far as I can gather I can't just switch these values in the yaml file and the energy reporting on HA doesn't let me select the water sensor as gas sensor.

mhendriks commented 4 months ago

Hi Tony, is it possible to share the yaml (or gas/water parts)?

tony-p commented 4 months ago

Is just reference standard one from the repo (references it)

substitutions:
  name: p1-dongle-pro
packages:
  smartstuff.p1_dongle_pro: github://mhendriks/esphome-p1/p1-dongle-pro.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
api:
  encryption:
    key: ...

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
mhendriks commented 3 months ago

Hi Tony, probably (I almost sure) the gas consumption is on mbus 2 and default the water mbus is on this id.

default config

dsmr:
  water_mbus_id: 2

You could change it to set the gas_mbus_id on 2

dsmr:
 gas_mbus_id: 2
tony-p commented 3 months ago

ok. In the meantime I changed back to the DSMR-API firmware and that is working well with the MQTT interface so migh stick with that one for the time being.