Closed vincentEuloge closed 4 years ago
Thanks for the information, I will get on to that later today and get a fix out.
There is no mention of geofence in the supported sensor types from Signify developer documentation, but I will use the information you have provided to cater for a new sensor type for now.
I have released a 4.0.9-rc1
to npm regsitry that contains a fix for you, can you please verify this works and if so I can release it as 4.0.9
.
I just tested it, it works. Thanks
4.0.9
has been released to the npm registry with the fix applied.
Thanks for the feedback.
When I call 'api.sensors.getAll()' I get the error: "Error: Unknown type 'geofence' to create Bridge Model Object from."
In the source code: 'https://github.com/peter-murray/node-hue-api/blob/master/lib/model/index.js'. there's no such thing as the geofence type.
After some research, it seems that 'geofence' is linked to my smartphone, here is the object which corresponds to it
I found a quick workaround by modifying the 'buildAllSensorsResult' function.
the 'try catch' avoids receiving zero results when a type is unknown