Coder Social home page Coder Social logo

Comments (4)

Joey-1970 avatar Joey-1970 commented on June 22, 2024 1

Hello Dominik and Glenn,

thanks for your note - now the fade time works!

Joachim

from ikea-tradfri-coap-docs.

Joey-1970 avatar Joey-1970 commented on June 22, 2024

Hello Dominik,

for which device this parameter shows a result?
I try this, but I don' see a effect..

Joachim

from ikea-tradfri-coap-docs.

domjancik avatar domjancik commented on June 22, 2024

I've tried it with the TRADFRI E27 600lm color bulb.

The parameter doesn't do anything in itself, it just sets the duration it will take the light to get to the setting you send along with it (brigthness, hex or xy color, ...).

For example, the following command changes the bulb to medium brightness immediately:
coap-client -m put -u "$TF_USERNAME" -k "$TF_PRESHARED_KEY" -e '{ "3311": [{ "5851": 127 }] }' "coaps://$TF_GATEWAYIP:5684/15001/$TF_DEVICEID"

Whereas adding the transition time parameter will result in the bulb fading smoothly into the new value:
coap-client -m put -u "$TF_USERNAME" -k "$TF_PRESHARED_KEY" -e '{ "3311": [{ "5851": 127, "5712": 10 }] }' "coaps://$TF_GATEWAYIP:5684/15001/$TF_DEVICEID"

From my observation the unit seems to be a 1/10 of a second.

from ikea-tradfri-coap-docs.

glenndehaan avatar glenndehaan commented on June 22, 2024

Hi @dominikjancik,

Thats indeed the intended use case.
Just sending the fade time will indeed do nothing.

Now the float value worked in the previous version of the hub firmware.
But is is possible that they changed this back to just an int.

I will update the documentation. Tnx for your feedback.

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.