Code Monkey home page Code Monkey logo

Comments (7)

rytilahti avatar rytilahti commented on September 2, 2024

How does the communication look like? Is it working fine with the command line utility? In the code the library handles setting those separately depending on the state of the bulb, so it could be possible that this is an issue with homeassistant instead of this library.

P.S. Could you please provide pyhs100 sysinfo (after masking the IDs if you want so), it's the only bulb we are missing an entry in https://github.com/GadgetReactor/pyHS100/blob/master/pyHS100/tests/fakes.py

from pyhs100.

githubbuh avatar githubbuh commented on September 2, 2024

Here is the sysinfo for one of my LB120 blubs.

pyhs100sysinfo.txt

from pyhs100.

githubbuh avatar githubbuh commented on September 2, 2024

I removed my LB120 from Kasa, added is back to provision network access, and made no configuration changes to the bulb in Kasa.

Using hass, i activated a scene that turned the bulb on and checked with the command line to see that brightness was 1. I then activated a scene that turned the bulb off. Using the command line, i verified that brightness was 1. I then activated a scene that set the brightness to 39 and verified that with the command line. I activated a scene to turn off the light. I then activated the first scene, which should have set brightness to 1. But, the command line confirmed that brightness was 39.

This pretty much confirms that when the light is turned on, the brightness defaults to what the light has stored as its last setting. The brightness provided in the scene has no influence.

hope this helps.

from pyhs100.

gollo avatar gollo commented on September 2, 2024

I'm pretty sure this bug was addressed in this PR 8780, which has been merged but not in time for 0.51.2. In this PR, the bulb is activated and then brightness modified when turned on, previously the brightness was modified then the bulb turned on, and that doesn't work. You could take this version to test with if you like or wait for the next release.

from pyhs100.

githubbuh avatar githubbuh commented on September 2, 2024

from pyhs100.

rytilahti avatar rytilahti commented on September 2, 2024

If the linked PR fixes this issue, then there is still a problem with pyhs100's bulb support though. I think it should be possible to change the settings when the bulb is off, but unfortunately testing such is hard without having a bulb. If the fix on that PR works for you, that's good! Thanks for the sysinfo output, I'll add it to our test-suite.

from pyhs100.

gollo avatar gollo commented on September 2, 2024

from pyhs100.

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.