Skip to content

Sensor update and gas usage #4

@mhkrebs

Description

@mhkrebs

First, thanks so much for doing all this work! I recently got this to report the numbers in ESPHome.

I had a few questions about the C++ implementation:

  1. Is there a reason to use PollingComponent to update the sensors periodically (it looks like it defaults to 5s), instead of immediately publishing to the sensors in parse_gas() and parse_water()?
  2. It looks like it's not publishing the gas usage. Is there a reason, such as the numbers not being reliable?
  3. The latest revision of the code didn't build for me. It looked like minor things like uint8 complaints or something. (I was able to build with an older revision so it's not an issue for me at the moment.)

Thanks again for this. I'm an experienced developer, but very inexperienced with ESPHome and ESP32, so I couldn't have done this without your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions