Closed henfri closed 3 months ago
Essentially this boils down to be a problem with the attributes of the light. color mode of the light is set to color, but color information is missing. I have just released v1.13.3, which contains better error handling for this error:
It should put an error line in the log now saying the following:
Could not calculate power. no hue/sat set. Please check the attributes of your light in the developer tools
It's prefixed with the light entity id which causes the problem.
There is something wrong with this light, so probably a bug in the integration providing this light in HA. At least with the improved logging we can see which light causes the problem and further investigate.
Thanks! I have updated, and now I have no traceback anymore - but also no warning (loglevel is warning; is that sufficient?)
Greetings, Hendrik
Thanks! I have updated, and now I have no traceback anymore - but also no warning (loglevel is warning; is that sufficient?)
Greetings, Hendrik
Probably your light has correct state now after startup or no state change has been reported to Powercalc.
The error is logged using error
level which is higher than warning
so when it happens again you should get an entry in your log.
Ok, thanks. I will keep an eye on it.
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1400 Downloaded Repositories | 33 HACS Data | okHome Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 6 -- | -- resources | 13 views | 6 mode | storageRecorder
oldest_recorder_run | 4. Juli 2024 um 19:37 -- | -- current_recorder_run | 13. Juli 2024 um 21:01 estimated_db_size | 1411.89 MiB database_engine | sqlite database_version | 3.44.2Spotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
This is the same issue as described in https://github.com/bramstroker/homeassistant-powercalc/issues/1920 , I think. That issue is closed asking to open a new issue in case it occurs again:
Reproduction steps
...
Debug logs
Diagnostics dump or YAML config
No response