Giter Site home page Giter Site logo

Comments (8)

roddone avatar roddone commented on August 17, 2024 1

fixed and new version 1.5.1 published and available on nuget ;)

from yeelightapi.

roddone avatar roddone commented on August 17, 2024

Hi, can you provide a code sample to help me reproduce the problem ?

from yeelightapi.

Dainius14 avatar Dainius14 commented on August 17, 2024

You can recreate it in the tests by passing null as smooth parameter in methods:
SetPower, TurnOff, TurnOn, SetBrightness, SetColorTemperature, SetRGBColor, SetHSVColor. Output https://pastebin.com/EMciJfmW

The tests are a little wrong though, because first you tests without smooth param, and then with smooth param, though not all applicable methods are passed the smooth param, so this also needs fixing. Also, tests show that everything is fine although half of the methods fail. And also for some reason my Yeelight is treated as BackgroundLight, although none of the methods work.

from yeelightapi.

roddone avatar roddone commented on August 17, 2024

I can't reproduce the problem ... but I don't have the same devices as you to perform my tests (I only have Yeelight V1 RGB)
There could be a firmware compatibility issue with the smooth parameter, Yeelight expects 2 parameters : "smooth|sudden" and a duration. When no duration is expected the second parameter used to be ignored in V1, but I suspect in V2 it must be an integer in order to work.

I've made a possible fix in "tests-for-v2-bulbs" branch, since I can't test it by myself, can you test it and give me your feedback ?

from yeelightapi.

roddone avatar roddone commented on August 17, 2024

The tests are a little wrong though, because first you tests without smooth param, and then with smooth param, though not all applicable methods are passed the smooth param, so this also needs fixing. Also, tests show that everything is fine although half of the methods fail. And also for some reason my Yeelight is treated as BackgroundLight, although none of the methods work.

I agree, theses tests are just a quick way for me test all the methods with most common parameters. It cannot be trusted for industrial or unit testing

from yeelightapi.

Dainius14 avatar Dainius14 commented on August 17, 2024

from yeelightapi.

Dainius14 avatar Dainius14 commented on August 17, 2024

Works like a charm

from yeelightapi.

roddone avatar roddone commented on August 17, 2024

Great, I will publish new nuget version quickly.
This will be a great opportunity to test my new azure devops pipelines 😁

from yeelightapi.

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.