bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
1.02k stars 262 forks source link

Utility meters wasnt created #2668

Open droidgren opened 1 day ago

droidgren commented 1 day ago

System Health details

System Information

version core-2024.11.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.54-haos
arch x86_64
timezone Europe/Stockholm
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1532 Downloaded Repositories | 31
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.11.3 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 109.3 GB disk_used | 10.1 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Matter Server (6.6.0), Duck DNS (1.18.0), File editor (5.8.0), Home Assistant Google Drive Backup (0.112.1), NGINX Home Assistant SSL proxy (3.11.1), Samba share (12.3.2), SQLite Web (4.2.2), Mosquitto broker (6.4.1), Volvo2Mqtt (1.10.5), Advanced SSH & Web Terminal (19.0.0)
Dashboards dashboards | 7 -- | -- resources | 14 views | 25 mode | storage
Recorder oldest_recorder_run | 4 november 2024 kl. 16:32 -- | -- current_recorder_run | 11 november 2024 kl. 21:35 estimated_db_size | 961.85 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

I created an substract group.I got a power sensor and a energy sensor but no utility meters.

"Create Utiliy meter" was checked and I chose daily, monthly and yearly but none was created. So I guess it should be three more sensors. In global settings/Basic options - Create utility meters is enabled.

Reproduction steps

  1. Create substract group
  2. Follow steps i GUI
  3. No Ulity meters are created ...

Debug logs

2024-11-12 12:12:55.579 DEBUG (MainThread) [custom_components.powercalc.sensors.group.subtract] Creating grouped power sensor: Test substract power (entity_id=sensor.test_substract_power)
2024-11-12 12:12:55.579 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor (entity_id=sensor.test_substract_energy, source_entity=sensor.test_substract_power, unit_prefix=k)

Diagnostics dump or YAML config

No response

bramstroker commented 1 day ago

Should be fixed with #2670, will be in next release.