bertouttier / ilexconnect-hacs

I-LexConnect integration for HACS
MIT License
2 stars 2 forks source link

Water usage data #5

Open kimme1024 opened 1 year ago

kimme1024 commented 1 year ago

First of all thanks for the integration! I’ve been waiting so long for this to pop up!

Are there any plans to also include the water usage data so we can use it in the energy dashboard?

kimme1024 commented 1 year ago

I already added this functionality locally:

API_TCG_total = "getTCG_total" # water verbruik vandaag in liter

    SensorEntityDescription(
        key=API_TCG_total,
        native_unit_of_measurement=VOLUME_LITERS,
        name="Water verbruik volume vandaag",
        state_class=SensorStateClass.MEASUREMENT,
    ),

it pops up in HA after a restart, after that you'd be able to make an utility sensor that ads up the daily values.

I wasn't yet able to test this as sadly the connection with the api is very unstable. I guess the update interval is too high and therefore the integration gets blocked by i-lexconnect. I tried to change the update interval to 20 minutes but at this moment I'm still blocked.

I reached out to SYR to ask if it'd be possible to scrape the data locally. As it's an ESP based system it should be possible. I hope they'll answer my questions.