Skip to content
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

Uitility meter for daily_fixed_energy disappeared with 1.6.2 #1685

Closed
5 tasks done
emufan opened this issue May 30, 2023 · 16 comments
Closed
5 tasks done

Uitility meter for daily_fixed_energy disappeared with 1.6.2 #1685

emufan opened this issue May 30, 2023 · 16 comments
Labels
bug Something isn't working

Comments

@emufan
Copy link
Contributor

emufan commented May 30, 2023

System Health details

System Information

version core-2023.5.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 6.1.25
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4995
Installed Version 1.32.1
Stage running
Available Repositories 1292
Downloaded Repositories 46
Home Assistant Cloud
logged_in true
subscription_expiration 30. August 2023 um 02:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
remote_server eu-central-1-5.ui.nabu.casa
certificate_status ready
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.1
update_channel stable
supervisor_version supervisor-2023.04.1
agent_version 1.5.1
docker_version 23.0.3
disk_total 113.9 GB
disk_used 10.7 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.2), File editor (5.6.0), Samba Backup (5.2.0), Studio Code Server (5.6.1), Advanced SSH & Web Terminal (15.0.2), Mosquitto broker (6.2.1), SQLite Web (3.8.0), Eufy Security Add-on (1.3.0)
Dashboards
dashboards 7
resources 28
views 29
mode storage
Recorder
oldest_recorder_run 20. Mai 2023 um 08:15
current_recorder_run 30. Mai 2023 um 09:36
estimated_db_size 1669.13 MiB
database_engine sqlite
database_version 3.40.1

Checklist

  • I have read the FAQ to see if there is a known solution to my problem.
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

After updating to 1.6.2. this noon, every utilitymeter (daily, monthly, ...) from all daily_fixed_energy sensors are not available anymore.

Here only one example

  - platform: powercalc
    name: Fritz Repeater
    unique_id: unique_id_powercalc_fritz_repeater
    daily_fixed_energy:
      value: 15
      unit_of_measurement: W

image

Reproduction steps

Would provide if necessary, but I'm not at home

Debug logs

Would provide if necessary, but I'm not at home

Diagnostics dump or YAML config

No response

@emufan emufan added the bug Something isn't working label May 30, 2023
@vahaldor
Copy link
Contributor

This is related to the bug I reported a couple of hours ago and it is not related to 1.6.3. I restored my night backup, in which I had 1.6.2 version of powercalc and they were already unavilable.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

Yes, double-checked in returning back to old version and it is happening already with 1.6.2. With 1.6.1 it is o.k. again.

@bramstroker
Copy link
Owner

Hi guys, I'm sorry to hear you have problems since 1.6.1.
Thanks for reporting, when you have any additional logs in the errors please include.
I'm very busy this week, hopefully it's a small issue and can find some time to fix.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

Here unfortunately nothing in the logs, but didn't switched to debug mode. Now I'm back to working 1.6.1, so that I not miss that much values until then.

If you cannot see, which 1.6.2 change could belong to this case here (only happening for daily_fixed_energy as far as I saw, I can ofc update again and make some fast checks, before going back to 1.6.1.

@emufan emufan changed the title Uitility meter for daily_fixed_energy disappeared with 1.6.3 Uitility meter for daily_fixed_energy disappeared with 1.6.2 May 30, 2023
@vahaldor
Copy link
Contributor

Folks, how can I roll back the version? I am trying the feature redownload in HACS, when I open the powercalc integration and checking 1.6.1 but it does not show me later what version I have installed. Could you please point me? I tried this but the sensors are still unavailable

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

Open HACS, click on Integration, click on Powercalc and then in three-dot-menu, thrid option, here in German

image

@vahaldor
Copy link
Contributor

ok, it was the proper procedure. I am currently running 1.6.1 but my energy sensors are still unavailable. I am not sure that it is necessarily related to the powercalc version. Even the HA core has been rolling out some energy related updates and I updated to 1.6.3 from something older because I found my sensors unavailable.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

As this/my issue is only about utility meters on daily_fixed_energy sensors, can you perhaps proceed in "your error issue". Even if it could be related, it is not the same I reported here. ;-)

@bramstroker
Copy link
Owner

@emufan there was a small change regarding creation of daily_fixed_energy sensors which might be releated to your issue #1679
Could you please enable debug logs and see if that gives some clues?
search for Fritz Repeater and you'll see log lines where the energy sensor is created, and should be followed by creation of utility meters.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

2023-05-30 17:24:44.767 DEBUG (MainThread) [custom_components.powercalc.sensors.daily_energy] Creating daily_fixed_energy energy sensor (name=Fritz Repeater ENERGY_COUNTER, entity_id=sensor.fritz_repeater_energy_counter, unique_id=unique_id_powercalc_fritz_repeater)
2023-05-30 17:24:44.768 DEBUG (MainThread) [custom_components.powercalc.sensors.daily_energy] Creating daily_fixed_energy power sensor (base_name=Fritz Repeater unique_id=unique_id_powercalc_fritz_repeater)
2023-05-30 17:24:44.768 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=sensor.dummy entity_category=None, sensor_name=Fritz Repeater POWER strategy=FixedStrategy manufacturer= model= standby_power=0.00 unique_id=unique_id_powercalc_fritz_repeater_power)

Even no try to create the utility meters.

The follow up lines from other entities like this

2023-05-30 17:24:43.269 DEBUG (MainThread) [custom_components.powercalc.sensors.utility_meter] Creating utility_meter sensor:

are completely missing here with 1.6.2 for this type of powercalc sensors.

@bramstroker
Copy link
Owner

Thanks for providing this information. Will try to reproduce.

@bramstroker
Copy link
Owner

I have found the issue. Was indeed a regression in 1.6.2.
Will be fixed with #1686
Also added an extra automated test to make sure this stays working.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

Just wanted to post this as perhaps potential cause source change related to this error.

image

And during update, your fix was already there. Excellend.

@bramstroker
Copy link
Owner

Yes that was the cause indeed. Was to enthousiastic cleaning up some code ;-)

@bramstroker
Copy link
Owner

New version 1.6.4 released with a fix.
Could you verify things are resolved for you now?
Thanks for reporting and the help in debugging this issue.

@emufan
Copy link
Contributor Author

emufan commented May 30, 2023

Can confirm. Updated to 1.6.4. The utility meters are still (or again, depending from the pov) there. Thanks for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants