morzzz007 / node-tradfri

Node API to control IKEA Tradfri Lights
MIT License
49 stars 17 forks source link

Adding group #7

Open andreigiura opened 6 years ago

andreigiura commented 6 years ago

Hi, the group feature is great. But it don't get how exactly to group the bulbs in one group. Is there a "addDeviceToGroup(deviceId, groupId)" method? Thanks for the great library.

morzzz007 commented 6 years ago

Hi,

For now, you can only add individual bulbs to groups in the TRÅDFRI app on ios/android, like this: img_0790

I think it's possible to create groups through the CoAP interface somehow but typically you don't do this dynamically (also doing it from the ui is much more convenient), this is why i haven't implemented it yet.

FYI: IKEA just updated the TRÅDFRI Gateway to start using DTLS Identities, so if your gateway is on version 1.2.42 this lib won't work anymore, but i'll release a new version soon. Thank you!