homeassistant-powercalc: YLDD05YL Yeelight color strip with extensions error on startup

Hi. Using Powercalc for my YLDD05YL led strip (Yeelight 1S) with additional extensions, every time on startup I got an error in logs:

Logger: custom_components.powercalc.sensors.power
Source: custom_components/powercalc/sensors/power.py:88
Integration: Powercalc (documentation, issues)
First occurred: 09:29:18 (1 occurrences)
Last logged: 09:29:18

light.rack: Error setting up calculation strategy: No lookup file found for mode: color_temp

Seems like it works and calculate measurements, error appears only once after Core restart.

Component added with GUI using lut YLDD05YL/extensions_2.

How can I fix that?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Should be fixed with #1091 You can test by installing the master branch.

@chertvl Thanks for sharing the logs. I was able to reproduce. Should be fixed with #1087. Are you able to test by installing the master branch?

Ive noticed that old version of Powercalc (before LUTs in GUI feature) with config in Yaml haved another logic for power and energy entities naming: if I give light.rack i got light.rack_power, light.rack_energy. With GUI with LUTs I saw PowerCalc creates _power and _energy from friendly_name, ex: light.stellazh_power (if friendly name is ‘Стеллаж’ in my language, and entity_id is ‘light.rack’).

Maybe there is the problem? And maybe I need just to re-add my light?

I don’t see anything wrong with the config entry yet, looks fine. For the naming (of entity_id and name) the name you give to the config entry will be used, when you don’t specify that, than it will be inherited from the source entity (light.rack). So that’s by design and should not cause this error.

I do have an idea however where the error could come from. Will have a look if I can reproduce and solve.