-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Last reset is missing #67
Comments
@jeppemedleen If you know how to add a template sensor by YAML. You could add the following, to get water consumption working in the Energy area. This will always be one day delayed, even though it will be shown today. - platform: template
sensors:
eforsyning_water_usage_total:
friendly_name: "EForsyning: Water usage (total)"
unique_id: eforsyning_water_usage_total
unit_of_measurement: m³
device_class: water
availability_template: >
{{ has_value("sensor.eforsyning_water_end") and states("sensor.eforsyning_water_end") | float(0) > 0 }}
value_template: >-
{{ states("sensor.eforsyning_water_end") | float(0) }}
attribute_templates:
state_class: total_increasing
last_reset: >
{{ ((state_attr("sensor.eforsyning_water_end", "data") | sort(attribute="date", reverse=true))[0].date | as_datetime).isoformat() }} |
Thank you. I have never used the energy dashboard as I am apparently not clever enough to set it up 😀 |
|
Please help me help you:
When using the entity Eforsyning_water_used it states that the last reset is missing
The text was updated successfully, but these errors were encountered: