Open RubenKelevra opened 6 days ago
Have a look in .storage/core.config_entries
if you have any match for light.lamp_hallway_ceiling_1
.
And also in your configuration.yaml
if you set up this one already if you use yaml.
Otherwise just give it a unique_id
as indicated, than it should continue anyway.
I think I have encountered this with non powercalc devices/sensors. When deleting a device the information about this is still stored in home assistantant and you cannot add the device/sensor again under the same name. Even restarting HA does not change this.
A wild guess is that as you can see in core.zzz files there are sections about deleted devices/entities.
A definite solution is to find the entries in the core.zzz files and delete them. You need to habe HA stopped for this AND you need to know what you are doing! Otherwise you will break your config.
I am sure it is not an issue of powercalc.
Have a look in
.storage/core.config_entries
if you have any match forlight.lamp_hallway_ceiling_1
.
This file contains this light twice. One time in the settings for Adaptive Lighting and one time in the light group this light is in. Nothing in regard to PowerCalc.
And also in your
configuration.yaml
if you set up this one already if you use yaml.
I've already looked through my powercalc.yaml (and the configuration.yaml). I've deleted those setting a year ago or so and switched to the UI.
Otherwise just give it a
unique_id
as indicated, than it should continue anyway.
Sure, I just was curious what the cause is... and if it can be fixed.
@bramstroker I've added it now with the unique ID lamp_hallway_ceiling_one
and powercalc set it up fine, but with the *_1
-IDs, not the specified *_one
id.
Where's the *_one
id used then, if not for the power meter and energy meter?
When you see _1
or any other numeric postfix this generally means an entity with same name already exists in HA.
Please check entities
list if you have any orphaned entities.
@RubenKelevra can we close this issue?
When you see
_1
or any other numeric postfix this generally means an entity with same name already exists in HA. Please checkentities
list if you have any orphaned entities.
Well, except that the light is called " 1", so if there would be a "_1" added for this reason, it would be ending up being named "_1_1".
@RubenKelevra can we close this issue?
Well, if you don't wanna fix the issue? It's no blocker for me, just weird.
Let me have a look.
Do you have diagnostics from the related config entry? You can find that on powercalc integration page, find the entry, click three dots and download diagnostics.
Also enable debug logs and share related logs where it's saying Creating power sensor
and Creating energy sensor
for the concerning entity.
System Health details
System Information
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 | 1528 Downloaded Repositories | 17Home Assistant Cloud
logged_in | true -- | -- subscription_expiration | xxx relayer_connected | false relayer_region | null remote_enabled | false remote_connected | false alexa_enabled | false google_enabled | true cloud_ice_servers_enabled | true remote_server | null certificate_status | null instance_id | xxx can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 13.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.11.2 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 234.0 GB disk_used | 34.3 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.4.1), Grocy (0.22.1), Home Assistant Google Drive Backup (0.112.1), Advanced SSH & Web Terminal (19.0.0), Log Viewer (0.17.1), Dnsmasq (1.8.1), phpMyAdmin (0.10.0), ESPHome (2024.10.3), Epic Games Free (debian-2024-10-23), Portainer (2.23.0), Tor (5.0.1), File editor (5.8.0), AppDaemon (0.16.7), Tailscale (0.23.2), openWakeWord (1.10.0), Piper (1.5.2), Whisper (2.2.0), MQTT IO (0.4.0), Postgres 15 (15.5-7), Castsponsorskip (0.8.0), Zigbee2MQTT (1.41.0-1)Dashboards
dashboards | 6 -- | -- resources | 2 views | 26 mode | storageRecorder
oldest_recorder_run | August 14, 2024 at 19:07 -- | -- current_recorder_run | November 12, 2024 at 19:40 estimated_db_size | 9295.19 MiB database_engine | sqlite database_version | 3.45.3Checklist
Describe the issue
I've switched some lamps around and deleted the corresponding lamp configurations in powercalc. Now one lamp has no powercalc config yet and I try to add it, but it insists, that there's already such a sensor ... while well, there is none.
I try to add Hallway Ceiling 1, and there is no instance for it:
There's also no power and energy entities in the search results, compared to Hallway Ceiling 2, which has some:
And here's the message I get when I select Hallway Ceiling 1 and click on "Next":
Not sure what went wrong or how I clean this up.
Reproduction steps
Debug logs
Diagnostics dump or YAML config
And