Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Setting RGB bulb colours? #9

Open
davidchatting opened this issue Dec 31, 2019 · 3 comments
Open

Setting RGB bulb colours? #9

davidchatting opened this issue Dec 31, 2019 · 3 comments

Comments

@davidchatting
Copy link

Hi - I've had quite a lot of success using ikea-tradfri with Node-Red - thanks!

One thing I would like to do is to set the RGB values on the bulbs and perhaps the transition rate - what would it take to add that? With some pointers I could work on it myself.

Cheers,
David

@CliffS CliffS self-assigned this Jan 1, 2020
@CliffS
Copy link
Collaborator

CliffS commented Jan 1, 2020

As far as I am aware, the Trådfri bulbs only take three colours. If there is now a full-colour version, I haven't seen it yet.

The colours I use are:

    colours = {
      white: 'f5faf6',
      warm: 'f1e0b5',
      glow: 'efd275'
    };

The current colour of a bulb may be retrieved from the bulb.colour property and set via the bulb.setColour() method. Is this what you meant or is there an RGB bulb that I've missed?

As far as setting the transition time, I'll leave this open and look at it in the near future.

@davidchatting
Copy link
Author

Hi - yes, I have one of these > https://www.ikea.com/gb/en/p/tradfri-led-bulb-e27-600-lumen-wireless-dimmable-colour-and-white-spectrum-opal-white-00408612/

It's not full RGB, but has a larger palette than the previous bulbs.

David

@CliffS
Copy link
Collaborator

CliffS commented Jan 1, 2020

OK. I hadn't noticed that they were multi-coloured. I will buy one next week and play with it.

@CliffS CliffS removed their assignment Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant