Closed peterxrock closed 2 years ago
I have a few questions for you:
Hallo!
I do have the same problem.
I enabled logging and this is the only entry in my log:
2022-01-15 09:24:58 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration powercalc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
I'm using V 0.15.0 with the original Hue Integration and the Hue Bridge (BSB002 on FW 1.49.1949107040) with 5 LWB010 and 2 LWA001
Very strange, I am unable to reproduce this yet. You should see at least this debugging line:
2022-01-15 11:16:59 DEBUG (MainThread) [custom_components.powercalc] Start auto discovering entities
@fuxing-at Did you have this problem since v0.15 or also in older versions?
First try to force enable auto discovery. It should be enabled by default, but we can try anyway:
powercalc:
enable_autodiscovery: true
When this is also not working could you try setting up one sensor manually? Is that working correctly?
sensor:
- platform: powercalc
entity_id: light.my_hue_light
If this is also not working something is wrong with the loading of powercalc on your HA instance, but it's hard to say wat when there is no error whatsoever in the logs.
Hi! I had this also in previous version. I enable autodiscovery and it worked for me!
Damn, I reinstalled I thing a dozen times... but sometimes it's the easiest to try first...
Thank You!
Damn, I reinstalled I thing a dozen times... but sometimes it's the easiest to try first...
That's good news! However I'm still unsure why it is not working when you don't have add the additional configuration. Will install another clean HA and see if I am able to reproduce.
Just to let you know: I'm running Version core-2021.12.9 in Docker on an Asustor AS6202T NAS.
I was able to reproduce in a new VM.
You'll need at least the following configuration to make sure powercalc global initialization is correctly excecuted:
powercalc:
You don't have to specify any options (as for most people the default options will be ok), but you need at least this entry. I need to update the readme for this. I don't think I have any possibility to make it work without this entry. It's the way HA works to make sure the init routine of the component is executed.
Sorry, just woke up and I see there’s some progress! I tried adding it manually, but there’s still nothing happening.
My setup is fairly vanilla. light.bathroom_overhead_1, for instance, doesn’t have any additional entities after multiple restarts. It’s a Hue GU10.
@peterxrock what did you try exactly regarding configuration? You'll need to add powercalc:
as in my latest comment?
And how did you check no entities were created? There should be an entity sensor.bathroom_overhead_1_power
.
@bramstroker Sorry for the delay. I added powercalc: to configuration.yaml
When I go to Entities, I search by "Power", and nothing comes up.
I'm running on a Synology VM, 2021.12.9
.
I tried setting up manually, but got this error:
2022-01-16 20:50:21 ERROR (MainThread) [custom_components.powercalc.sensors.power] Skipping sensor setup light.bedroom_saucer: Model not found in library (manufacturer: Signify Netherlands B.V., model: LCA005)
However, this is the most common Hue A19 bulb.
@peterxrock This one is not on the supported models list yet. I think this is the latest generation of the color bulbs. You can request measurements for light models here, however someone must have a good smart plug, be familiar with the measure tool and physically have this exact light to be able to do it. I will ask around at my friends if someone has this exact model, than I can do the measurements.
For testing purposes you could try to input a supported light model:
sensor:
platform: powercalc
entity_id: light.bedroom_saucer
manufacturer: signify
model: LCA006
Let's see if this works. Than we can also check if debug logging is working. You should have multiple debug lines.
Are all of your 80 Hue lights this same model? I cannot imagine none of your lights to be supported.
Btw I don't think any of my friends have the LCA005 as this is a E26 fitting, which is not european standard. Pretty sure when all Hue bulbs sold in the Netherlands are E27 or E14.
Ah, okay. I didn't realize the US bulbs wouldn't work. Thank you!
Installed via HACS. I have about 80 Hue bulbs, which are all on the supported list, however there are no auto-generated sensors after multiple restarts. There are no errors in the logs. I re-installed and have the same issue.