Closed KlausH1967 closed 6 months ago
Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (utility_meter
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
utility_meter documentation utility_meter source (message by IssueLinks)
Probably related to #102884
@gibwar would you have a look ?
@KlausH1967 the file attached does not have any information about how your utility_meters are configured... could you provide that information ?
Hello, this is what I found in core.config_entry:
{
"entry_id": "d25c4a2ccf40cb8b70da3a7b90a9e2e0",
"version": 2,
"minor_version": 1,
"domain": "utility_meter",
"title": "Stromzähler Bezug",
"data": {},
"options": {
"name": "Stromzähler Bezug",
"source": "sensor.hausanschluss_energie_bezug",
"cycle": "none",
"offset": 0.0,
"tariffs": [
"Strompreis Bezug variabel"
],
"net_consumption": false,
"delta_values": false,
"periodically_resetting": false,
"always_available": false
},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "user",
"unique_id": null,
"disabled_by": null
},
Hope this is helpful for you Klaus
Could you please enable debug for the utility_meter and run your automation (checking for Reset debug messages on all utility_meters)
Same issue here. Nothing fancy nor complicated in my utility meters. I used the UI to create them. Simple meters linked to energy entities. Values reports accurate with no issues. Cycles works 100% (resetting themselves daily, weekly monthly etc as configured through the UI)
However... when I call the utility_meter.reset service for a specific utility meter, they all reset. Even my irrigation meter. This is from NODE RED.
I then tried to mimic the issue from within the HA Services tab under delevoper tools. After selecting "utility meter: reset" from the services list, I get the message "no matching entities found" under devices AND under entities (so none of my meters are listed under targets). The "utility meter: calibrate" service however picks up my meters and show them correctly.
Core 2024.4.1 Supervisor 2024.03.1 Operating System 12.1 Frontend 20240404.1
Could use debug messages during the reset :/
I then tried to mimic the issue from within the HA Services tab under delevoper tools. After selecting "utility meter: reset" from the services list, I get the message "no matching entities found" under devices AND under entities (so none of my meters are listed under targets). The "utility meter: calibrate" service however picks up my meters and show them correctly.
This is expected, you can see the referenced conversations on #102884 on how to handle the UI side. If you go to advanced mode you can enter the entity in directly to have it work. (Long story short, the selector options can't constrain to what we need so to reduce confusion it's hidden in regular mode)
@gibwar it's not expected that reseting 1 utility_meter you end up reseting ALL utility_meters....
@gibwar it's not expected that reseting 1 utility_meter you end up reseting ALL utility_meters....
You're definitely correct there! I was trying to refer to not being able to use the UI pickers to pick individual ones to reset. I'm still getting my environment back up and running to I can help diagnose this issue. I didn't run in to it locally last time I worked on it (months and months ago).
I think I might have an idea on what the problem is with the condition check. Let me try a few things and if the initial tests pass (and I can replicate it) I'll push up a PR later today.
PR to fix the issue: #115170.
The problem
Since the update (today 9:20AM) to version 2024.4.0, all existing utility_meter are reset by service "utility_mete.reset", although they are limited to to entities.
"Netzbezug täglich" should be reseted only at midnight "Stromzähler Einspeisung Strompreis Einspeisung variabel" should be reseted every 5min by automation.
What version of Home Assistant Core has the issue?
core-2024.4.0
What was the last working version of Home Assistant Core?
core-2024.3.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
config_entry-hassio-a193d703a0861247209340eec8be0d51(1).json
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response