Code Monkey home page Code Monkey logo

Comments (9)

Joey-1970 avatar Joey-1970 commented on May 18, 2024

...maybe, the middle-part must be something in this way:
'{ "3311": [{"5709": 65353, "5710": 65535}] }' (one more { left, and right } from the array)
...I try several variations, but in this I have a reaction...

Joachim

from ikea-tradfri-coap-docs.

glenndehaan avatar glenndehaan commented on May 18, 2024

That command should work fine.
One thing to note is that if your bulb isn't an RGB bulb this won't work.
Also if you enter an out of bounds value the bulb won't change and isn't going to give a response.

Can you first try a HEX value to make sure that your bulb is RGB capable and is changing accordingly.

from ikea-tradfri-coap-docs.

Joey-1970 avatar Joey-1970 commented on May 18, 2024

Hello Glenn,

the bulb I try is a "Tradfri bulb E14 CWS opal 600lm". I thing this is a "RGB"?
Maybe I have two parts where I can make a mistake:

  1. Convert from RGB-Hex (given from the color-picker in the application) to xyY-Value
  2. Convert the xyY from the given value to 0-65535
    A "normal" xyY-Value look like a value that ist 0 to 1?
    Do you have any idea for me?

Joachim

from ikea-tradfri-coap-docs.

glenndehaan avatar glenndehaan commented on May 18, 2024

That bulb should be indeed an RGB one.
If you try this command is it changing to Blue for example?:

coap-client -m put -u "$TF_USERNAME" -k "$TF_PRESHARED_KEY" -e '{ "3311": [{ "5706": ¨4a418a¨ }] }' "coaps://$TF_GATEWAYIP:5684/15001/$TF_DEVICEID"

from ikea-tradfri-coap-docs.

Joey-1970 avatar Joey-1970 commented on May 18, 2024

...that was first I try - direkt from the hex-value from color-picker send to the bulb, but not every time I see a reaction. I will try it again...

Joachim

from ikea-tradfri-coap-docs.

glenndehaan avatar glenndehaan commented on May 18, 2024

Yeah the bulbs are picky about the colors and I have to say that I didn't found a good HEX to xyY converter yet

from ikea-tradfri-coap-docs.

kollokollo avatar kollokollo commented on May 18, 2024

Some of the color bulbs are not true RGB. The use four groups of LEDs instead. blue, red, cold white and warm white. So e.g. the green colors cannot really be displayed (only a very bright greenish color). One can draw the area used in the Color space diagram to indicate, which xy colors can be used. Also depending on the brighness wanted not all colors can be set either. This might be complicated.
One would need to find out the xyY values for each of the LED grould used and then draw four points in the xy diagram accordingly. Connect them with a line and you get the area which can be used.

from ikea-tradfri-coap-docs.

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.