Comments (4)
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.
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.
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.
I available in latest stable release
from home-assistant-miele.
Related Issues (20)
- Water consumption and Energy missing HOT 1
- The following integrations and platforms could not be set up: HOT 5
- Cannot add repository - getting error "...is not a valid add-on repository" HOT 1
- Invalid config The following integrations and platforms could not be set up: miele.sensor -> HA 2023.5 Beta HOT 1
- Unable to prepare setup for platform miele.sensor since installation of HA 2023.5 HOT 8
- Authentication fails after update of Homeassistant to 2023.5.0 HOT 2
- Error during setup of component Miele HOT 6
- core update 2023.5.4 HOT 6
- Unexpected exception importing platform custom_components.miele.sensor HOT 1
- Washing machines status is missing HOT 3
- After HA update Miele Integration wan't load
- Error during setup of component miele
- Issues with latest update HA 2023.7.2 HOT 13
- Issues with latest update HA Home Assistant 2023.9.0 HOT 2
- Broken support for PDR508HP / EK037 - Type 4 - semi-professional tumble dryer
- Re-Auth needed often after reboot of HA HOT 5
- No icon for domain - Frontend Warning
- SUPPORT_SET_SPEED was used from miele, this is a deprecated constant which will be removed in HA Core 2025.1
- Deprecation, needs to be fixed before 2024.9
- Adding the integration to HA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-miele.