Comments (10)
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.
I have two Hue motion sensors. How do I see the JSON with your library?
from yetanotherhueapi.
Technically you can't do that, but calling hue.getRaw().getSensors()
would be the next best thing. :)
from yetanotherhueapi.
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.
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.
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.
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.
Figured it out: the motion sensors were disabled in the Hue app. Once enabled I get temperature values.
from yetanotherhueapi.
Excellent, thank you for the information!
from yetanotherhueapi.
This has now been fixed in version 2.6.0.
from yetanotherhueapi.
Related Issues (20)
- Add colorloop effect
- Add group 0, i.e. the "all lights" group
- NPE when bridge doesn't return sensors HOT 5
- could you make a java 11 version which includes a module-info file. THX HOT 2
- Get color of light HOT 1
- Turn on / off room without setState (color, alert, etc...) HOT 2
- Why so restrictive? HOT 7
- Add mDNS support for discovering bridges HOT 1
- Add new light HOT 6
- Server-Sent Events HOT 7
- Implement a findByUiniqueId for lights and sensors HOT 11
- No logging by default HOT 3
- Get state ... question ? HOT 3
- Why such a restrictive State.Builder? HOT 2
- EffectType from String "prism": not one of the values accepted for Enum HOT 2
- Error when using v2 HOT 2
- JKS not found and java.io.FileNotFoundException: https://discovery.meethue.com/ HOT 28
- Client code generation HOT 2
- save bridge details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yetanotherhueapi.