Code Monkey home page Code Monkey logo

Comments (4)

domisol avatar domisol commented on June 21, 2024

Hi. Probably your bulb have both cold and leds.
You should try this:
"31 00 00 00 ww cc 0f 0f" where ww is warm value and cc is cold value. Both can be used at the same time.

from magichue.

domisol avatar domisol commented on June 21, 2024

you can also change lines 133-139 in magichue.py:

    if parsed_args.warm is not None:
        warm = hex(int(parsed_args.warm)).replace('0x','')
        values = process_raw('31:00:00:00:'+warm+':00:0f:0f')

    if parsed_args.cool is not None:
        cool = hex(int(parsed_args.cool)).replace('0x','')
        values = process_raw('31:00:00:00:00:'+cool+':0f:0f')

from magichue.

domisol avatar domisol commented on June 21, 2024

Or also if you want to use both warm and cool (interesting to make a mix):

    if parsed_args.warm is not None and parsed_args.cool is None:
        warm = hex(int(parsed_args.warm)).replace('0x','')
        values = process_raw('31:00:00:00:'+warm+':00:0f:0f')

    if parsed_args.cool is not None and parsed_args.warm is None:
        cool = hex(int(parsed_args.cool)).replace('0x','')
        values = process_raw('31:00:00:00:00:'+cool+':0f:0f')

    if parsed_args.cool is not None and parsed_args.warm is not None:
        warm = hex(int(parsed_args.warm)).replace('0x','')
        cool = hex(int(parsed_args.cool)).replace('0x','')
        values = process_raw('31:00:00:00:'+warm+":"+cool+':0f:0f')

All this because our lamp has a RGBCW driver.

from magichue.

fariazz avatar fariazz commented on June 21, 2024

Thanks @domisol ! I'll see if with these I'm able to revive a couple of lightbulbs that I got permanently stuck in the RGB mode.

from magichue.

Related Issues (1)

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.