Code Monkey home page Code Monkey logo

Comments (4)

reox avatar reox commented on May 26, 2024

Maybe https://community.home-assistant.io/t/total-average-daily-power-consumption/449095 solves this, I have setup an utility_meter now, but it looks like it needs some days to get the values and check if it will show a daily average.

I just fear that it will not work, because the last day is always imported in the night. And using another time for the reset will cause the meter to give averages between these times.... I think that HA is not made to do a lot of these calculations, with values from the past...

edit: the utility meter can possibly not work, because the sensor entity itself has no state, but we store only the statistics data...

from wienernetzesmartmeter.

reox avatar reox commented on May 26, 2024

Yes, as suspected, the utility meter does not work when the sensor itself has no state. It stays at zero all the time. :/

from wienernetzesmartmeter.

TheRealVira avatar TheRealVira commented on May 26, 2024

Hey @reox I have added an utility meter locally to display "daily usage", which pretty much works except when WN reports nothing/0;

image

Utility Meter config:

{ 
    "entry_id": "REDACTED",
    "version": 1,
    "domain": "utility meter",
    "title": "Energy",
    "data": {},
    "options": { 
        "name": "Energy",
        "source": "sensor.REDACTED",
        "cycle": "daily",
        "offset": 0.0,
        "tariffs": [],
        "net_consumption": true,
        "delta_values": false 
}

Today I added a new filter sensor to my configuration.yaml, which should get rid of all 0 values afaik:

sensor:
  - platform: filter
    name: "energy_filtered"
    entity_id: sensor.energy
    filters:
      - filter: lowpass

And with this in place I should be able to set up statistics with correct daily usage data. I will follow up as soon as it fetches new values.

from wienernetzesmartmeter.

reox avatar reox commented on May 26, 2024

@TheRealVira interesting! I tried also the utility meter and did not get it to work. Are you using the statistics branch or main? Maybe the problem is just that it does not work in combination with the statistics...

from wienernetzesmartmeter.

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.