Closed seba1337 closed 6 months ago
hmm, this change has side effects for Powercalc :-( Also see https://github.com/bramstroker/homeassistant-powercalc/issues/2142, where other integration / light causes similar problems now.
Fact is previously Tapo L900 only reported hs
as possible color_mode of the light. That is the color mode for color control.
However now the entity suddenly also reports color_temp
. This breaks powercalc as there are no measurements made for this color mode.
The check No lookup file found for mode
is raised upfront during powercalc sensor setup to report issues in early stage, but this error causes the powercalc sensor to not be setup at all.
Not sure how to resolve yet. I'm tempted to just remove the validation on startup all toghether. But than problems will arise whenever a user puts this light on color_temp
.
Could you try if color_temp
mode is working at all for this lightstrip? Might be that it is falsly reported as a supported_color mode.
It's even worse than that, because TapoLight reports following color_modes:
{<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.BRIGHTNESS: 'brightness'>, <ColorMode.HS: 'hs'>, <ColorMode.ONOFF: 'onoff'>}
That combination should never be possible at all.
brightness
and onoff
should be only supported color mode of it's own and never be mixed. According to HA specifications: https://developers.home-assistant.io/docs/core/entity/light/#color-modes
So the main issue is in TapoLight integration which is reporting wrong color modes for the light. I would suggest you to raise an issue in TapoLight repository as this error with the color modes should be fixed in that integration. https://github.com/petretiandrea/home-assistant-tapo-p100/issues
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Fixed upstream
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4979 Installed Version | 1.34.0 Stage | running Available Repositories | 1474 Downloaded Repositories | 23 HACS Data | okHome Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Debian GNU/Linux 12 (bookworm) -- | -- update_channel | stable supervisor_version | supervisor-2024.03.0 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 938.5 GB disk_used | 47.4 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.10.0), Silicon Labs Multiprotocol (2.4.4), Silicon Labs Flasher (0.2.0), Matter Server (5.4.1), Spotify Connect (0.13.0), Log Viewer (0.17.0), Studio Code Server (5.15.0), VLC (0.3.0), Mosquitto broker (6.4.0)Dashboards
dashboards | 5 -- | -- resources | 3 views | 4 mode | storageRecorder
oldest_recorder_run | 14 March 2024 at 08:50 -- | -- current_recorder_run | 22 March 2024 at 08:11 estimated_db_size | 507.19 MiB database_engine | sqlite database_version | 3.44.2Spotify
api_endpoint_reachable | ok -- | --Checklist
Describe the issue
On 14th march TP-Link Tapo L900 power/energy entities stopped working. I have two such strips, both stopped working. Works for normal lights L530E. I use the Tapo implementation from HACS.
Reproduction steps
Debug logs
Diagnostics dump or YAML config
No response