Giter Site home page Giter Site logo

Comments (7)

RobBie1221 avatar RobBie1221 commented on August 13, 2024

Like this: https://www.home-assistant.io/integrations/utility_meter/ ?

from ha-nefiteasy.

Salvora avatar Salvora commented on August 13, 2024

Yeah, kinda like this. Thanks for the suggestion. I will try that and see how it will go but I need to try that for a monthly cycle which will take time. Though, I was expecting something like a monthly gas usage sensor.
Configuration is set like that

#UTILITY METER
utility_meter:
  gas:
    source: sensor.nefit_year_total
    cycle: monthly

from ha-nefiteasy.

RobBie1221 avatar RobBie1221 commented on August 13, 2024

The yearly total is directly fetched from the thermostat. There is no command to directly get monthly usage, the app calculates that manually from daily usage. It's not very straightforward to fetch this data and I think not really needed as the above does the job as well.

from ha-nefiteasy.

ksya avatar ksya commented on August 13, 2024

Actually we can retrieve this data: https://github.com/marcelrv/nefit_easy_protocol/blob/fa339e56528bf60794315046e42ed737236308db/gasusage.md

from ha-nefiteasy.

RobBie1221 avatar RobBie1221 commented on August 13, 2024

As mentioned, we can retrieve data to calculate it, but it's not very straightforward.

Fetching the gasusage as in that link potentially gives a huge record as it contains the whole history. Then it needs to be parsed to filter out the days of the current month and accumulate the usage. Alternatively, single records can be fetched, but then first /ecus/rrc/recordings/gasusagePointer need to be fetched and then the relevant records for the month and it should be accumulated.

For the yearly usage, it's just one endpoint that is fetched. If someone wants to put effort in making this, it can be made, but I'm not sure if it's worth the effort as the utility_meter does (in my opinion) exactly what is requested.

from ha-nefiteasy.

ksya avatar ksya commented on August 13, 2024

I agree, I'm not going to put effort in this.

from ha-nefiteasy.

Salvora avatar Salvora commented on August 13, 2024

This seems to be more complicated than I thought. Using utility meter with a few lines of configuration seems more efficient.

from ha-nefiteasy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.