glenndehaan / ikea-tradfri-coap-docs

How can you communicate to your ikea tradfri gateway/hub through coap-client
MIT License
189 stars 21 forks source link

Group key numbers #6

Closed Rodeveer closed 5 years ago

Rodeveer commented 5 years ago

I had a question regarding the numbers that are as key mentioned in the retrieval of the groups. For instance I've got the following list already:

{
    5850: "status"
    5851: "brightness"
    9001: "name"
    9002: "???"
    9003: "group_id"
    9018: { // items in group
        15002: {…} // 15002 is what then? Sub group? No endpoint for that
    }
    9039: "???"
    9108: "???"
}

Maybe you can clearify some data? It's sad that there's no proper documentation for this yet.

glenndehaan commented 5 years ago

I will try to see how groups work tonight. Didn't use them before but let's see...

Rodeveer commented 5 years ago

I'm really curious what you think and what ur opinion is about naming. Currently i'm working on a Lumen framework with ReactJS as front. Quite interesting I have to say :)

glenndehaan commented 5 years ago

Sorry for the late reaction but I have pushed an update to the documentation: https://github.com/glenndehaan/ikea-tradfri-coap-docs#codes

This should contain some answers. But here is some small context below:

{
    5850 // On/Off status
    5851 // Brightness
    9001 // Name
    9002 // Creation date (unix epoch)
    9003 // Instance/group ID
    9018: { // Accessory Link's in group (Remotes. Please note per group IKEA only allows one 'master' remote)
        15002 // Default Remote ID
    }
    9039 // Scene ID
    9108 // Internal ID (Maybe? Didn't find any use for it.)
}
Rodeveer commented 5 years ago

Also sorry for my late response! Really nice documentation, we hate to write it, love it when its there! Good job 👍