Giter Site home page Giter Site logo

Comments (3)

bramstroker avatar bramstroker commented on July 18, 2024

hmm, this change has side effects for Powercalc :-(
Also see #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.

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

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

from homeassistant-powercalc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.