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

No Auto Generated Entities #498

Closed
peterxrock opened this issue Jan 15, 2022 · 14 comments
Closed

No Auto Generated Entities #498

peterxrock opened this issue Jan 15, 2022 · 14 comments
Labels
bug Something isn't working question Further information is requested

Comments

@peterxrock
Copy link

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.

@bramstroker
Copy link
Owner

I have a few questions for you:

  • Did you enable debug logging (see last section of readme)?
  • Which version of powercalc are you using?
  • Which integration/gateway are you using to control the Hue lights?

@bramstroker bramstroker added the question Further information is requested label Jan 15, 2022
@fuxing-at
Copy link

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

@bramstroker
Copy link
Owner

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.

@bramstroker bramstroker added the bug Something isn't working label Jan 15, 2022
@fuxing-at
Copy link

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!

@bramstroker
Copy link
Owner

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.

@fuxing-at
Copy link

Just to let you know:
I'm running Version core-2021.12.9 in Docker on an Asustor AS6202T NAS.

@bramstroker
Copy link
Owner

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.

@peterxrock
Copy link
Author

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.

@bramstroker
Copy link
Owner

@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.

@peterxrock
Copy link
Author

peterxrock commented Jan 17, 2022

@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
Screen Shot 2022-01-16 at 8 37 40 PM
.

@peterxrock
Copy link
Author

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.

@bramstroker
Copy link
Owner

@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.

@bramstroker
Copy link
Owner

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.

@peterxrock
Copy link
Author

Ah, okay. I didn't realize the US bulbs wouldn't work. Thank you!

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

No branches or pull requests

3 participants