Git Product home page Git Product logo

Comments (10)

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Interesting. I cannot reproduce this with my setup, where the only temperature sensors are in two Hue motion sensors. Could you provide the JSON that your Bridge returns on sensors? Temperature sensors are supposed to be the ones where "type" is either "zlltemperature" or "cliptemperature".

from yetanotherhueapi.

NathanSweet avatar NathanSweet commented on July 24, 2024

I have two Hue motion sensors. How do I see the JSON with your library?

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Technically you can't do that, but calling hue.getRaw().getSensors() would be the next best thing. :)

from yetanotherhueapi.

NathanSweet avatar NathanSweet commented on July 24, 2024

Here you go!

4={"name":"Hue temperature sensor 1","type":"ZLLTemperature","state":{"temperature":null,"lastupdated":"none"},"swupdate":{"state":"noupdates","lastinstall":"2022-02-05T19:57:32"},"config":{"on":false,"battery":100,"reachable":true,"alert":"none","ledindication":false,"usertest":false,"pending":[]},"modelid":"SML001","manufacturername":"Signify Netherlands B.V.","swversion":"6.1.1.27575","uniqueid":"00:17:88:01:09:19:76:4a-02-0402","recycle":null,"productname":"Hue temperature sensor","capabilities":{"certified":true,"primary":false,"inputs":null}}
9={"name":"Hue temperature sensor 2","type":"ZLLTemperature","state":{"temperature":null,"lastupdated":"none"},"swupdate":{"state":"noupdates","lastinstall":"2022-02-05T19:57:25"},"config":{"on":false,"battery":100,"reachable":true,"alert":"none","ledindication":false,"usertest":false,"pending":[]},"modelid":"SML001","manufacturername":"Signify Netherlands B.V.","swversion":"6.1.1.27575","uniqueid":"00:17:88:01:09:19:78:9b-02-0402","recycle":null,"productname":"Hue temperature sensor","capabilities":{"certified":true,"primary":false,"inputs":null}}

Maybe the sensors have never reported a temperature to the lib? I haven't been running the lib much, and not for long periods of time.

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Thanks! This reminds me of #34 where a daylight sensor was throwing an NPE for someone who was using the Apple Home Kit instead of the official app. Would you happen to be using that (or some other special software)?

from yetanotherhueapi.

NathanSweet avatar NathanSweet commented on July 24, 2024

I'm just using Java and 2 Hue motion sensors. It's the first thing I've tried to do with the library.

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Right, I don't think this library can confuse the Bridge. Have you taken those motion sensors into use in the app in any way, like are they supposed to be controlling some lights in your house?

Anyway, I should certainly fix the library so that it doesn't throw if the temperature is null.

from yetanotherhueapi.

NathanSweet avatar NathanSweet commented on July 24, 2024

Figured it out: the motion sensors were disabled in the Hue app. Once enabled I get temperature values.

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

Excellent, thank you for the information!

from yetanotherhueapi.

ZeroOne3010 avatar ZeroOne3010 commented on July 24, 2024

This has now been fixed in version 2.6.0.

from yetanotherhueapi.

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.