Giter Site home page Giter Site logo

Comments (4)

slovdahl avatar slovdahl commented on June 8, 2024 1

This sounds interesting!

I would like that too, and have a temporary solution:

template:
  - sensor:
    unique_id: 2fc7dbd7-3201-4067-9256-c7511f6e64fc
    name: Wasmachine Current Energy Consumption
    unit_of_measurement: "kWh"
    state_class: measurement
    device_class: energy
    state: >-
      {{state_attr('sensor.wasmachine_status', 'currentEnergyConsumption')}}
    attributes:
      last_reset: "1970-01-01T00:00:00+00:00"
  - sensor:
      unique_id: e6000881-c024-45ea-b37e-c70bc78ef818
      name: Wasmachine Current Water Consumption
      unit_of_measurement: "L"
      icon: mdi:water
      state: >-
        {{state_attr('sensor.wasmachine_status', 'currentWaterConsumption')}}

edit: for it to show up in te energy pannel it needed - state_class and - last_reset

Thanks for this! Does the static last_reset work properly though? 🤔 AFAICT, the currentEnergyConsumption is reset every time the washing machine has run.

Anyway, I started looking into submitting a PR with a fix for this.

from home-assistant-miele.

sildehoop avatar sildehoop commented on June 8, 2024

I would like that too, and have a temporary solution:

template:
  - sensor:
    unique_id: 2fc7dbd7-3201-4067-9256-c7511f6e64fc
    name: Wasmachine Current Energy Consumption
    unit_of_measurement: "kWh"
    state_class: measurement
    device_class: energy
    state: >-
      {{state_attr('sensor.wasmachine_status', 'currentEnergyConsumption')}}
    attributes:
      last_reset: "1970-01-01T00:00:00+00:00"
  - sensor:
      unique_id: e6000881-c024-45ea-b37e-c70bc78ef818
      name: Wasmachine Current Water Consumption
      unit_of_measurement: "L"
      icon: mdi:water
      state: >-
        {{state_attr('sensor.wasmachine_status', 'currentWaterConsumption')}}

edit: for it to show up in te energy pannel it needed - state_class and - last_reset

from home-assistant-miele.

sildehoop avatar sildehoop commented on June 8, 2024

Yes you are right I solved that by a making a utility_meter

utility_meters:
  - wasmachine_daily_energy:
    source: sensor.wasmachine_current_energy_consumption
    cycle: daily

Now wait a day and see if it works

from home-assistant-miele.

kloknibor avatar kloknibor commented on June 8, 2024

I available in latest stable release

from home-assistant-miele.

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.