GithubHelp home page GithubHelp logo

Comments (8)

sevenofnine-jni avatar sevenofnine-jni commented on July 19, 2024

I see that you have found the problem. Is there anything I can do to help?

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

Yes you can help, as we need to identify a unique device ID that can be used. You will see that Hue represents a single SML motion sensor (henceforth referred to as the parent sensor) as a group of three child sensors (motion, light level, temperature) each of which has as uniqueid. I had observed that characters 0-5 in the final set in uniqueid separated by : , appeared to link the three child sensors, so use those characters as the key to group them to the parent sensor. Clearly those 5 characters are not unique to a single parent sensor, so we need to identify the correct way of generating a key to associated child to parent sensors.

The alternative is just to treat each child sensor as a unique sensor, and leave it to the user to group them in HA.

from hue-sensors-hass.

sevenofnine-jni avatar sevenofnine-jni commented on July 19, 2024

If you use this part of the id 00:17:88:01:02:13:db:2e it seems to be unique? And also able to link them to the parent.

from hue-sensors-hass.

sevenofnine-jni avatar sevenofnine-jni commented on July 19, 2024

I broke out all sensors from my api responce and formated the text to easily see the id's and as far as I can see it is possible to use the part of the id I stated above. See this pastebin. https://pastebin.com/1z77Ba14

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

Wrong issue: comment moved

from hue-sensors-hass.

sevenofnine-jni avatar sevenofnine-jni commented on July 19, 2024

Or why not use the complete unique id? All three child sensors share the same uniqueid except for the very last 4 digits that is stating what kind of sensor it is. 0400 = light, 0402 = temp and 0406 is motion.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

OK fixed in 9b388de and release v0.4, thanks!

from hue-sensors-hass.

sevenofnine-jni avatar sevenofnine-jni commented on July 19, 2024

Works great now. Thanks for the fix.

from hue-sensors-hass.

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.