Closed IIAIronWolf closed 2 years ago
It works as follows. Powercalc tries to find all light entities in your installation and their respective manufacturer and models. This is the log line starting with "Auto discovered model". Next it tries to find the corresponding LUT file in the library. When the model is not supported it will say "Model not found in library", which is the case for almost all your lights. When your light is supported you'll see "Loading xxxxx.json" in the logs. So you should have a power sensor for your LIFX mini. You can see the supported lights here. LCA002, LCA003, LCT014 and LWB014 are not on the list yet unfortunately. You could have a look into providing measurements for these lights yourself (https://github.com/bramstroker/homeassistant-powercalc/wiki/Contributing-new-lights). Or wait till someone else provides it.
Whoops, I guess I missed that. Thanks for the info! Do you know why the power sensor creation would have been 'skipped' for the LIFX bulb? It didn't create one for some reason.
@IIAIronWolf That's because of the error you mentioned: light.living_room_light: ('No lookup file found for mode', 'color_temp')
. That light has been added 9 days ago, but color_temp.csv
is missing. I have asked the contributor if he could measure the light in color_temp mode and submit the csv which should resolve this error.
I have asked the contributor if he could measure the light in color_temp mode and submit the csv which should resolve this error.
Will do :)
The fix is merged in from #726, let me know if you have any issues @IIAIronWolf
Thanks for fixing @jacobdonenfeld
I had no luck with this integration in the past and decided to start from scratch today. After reinstalling powrcalc, I noticed all of the lights being auto discovered in the logs, but the automatic power sensor function has never worked on old or new versions of the integration. I did noticed an error on a single light about setting up the power sensor, and I am wondering if the code is failing when it finds the first automatic power sensor setup failure.
Power sensor setup failure:
2022-05-08 00:50:46 ERROR (MainThread) [custom_components.powercalc.sensors.power] Skipping sensor setup light.living_room_light: ('No lookup file found for mode', 'color_temp')
Full Log: