jdomeij / node-red-contrib-node-hue

Node RED nodes for controlling Philips Hue lights
Apache License 2.0
17 stars 8 forks source link

Input from motion detector? #24

Closed devleaks closed 6 years ago

devleaks commented 6 years ago

Philips Hue Motion Detector fires events on motion detection (!). It would be great if we could capture them in your package. I've read that the motion detector also reports light level and it would be great if we could get that. (Turn light on when light level below 50 lux.) Thank you.

jdomeij commented 6 years ago

I have no plans for adding input nodes to this package at this moment, the only way to detect events is poll for them. The light nodes uses slow polling mode to keep the node-red and the lights synchronized, this doesn't work when handling event driven inputs where you need to continuously poll with low delay to not make it feel unresponsive. I'm uncertain how to integrate this with the existing code and how large redesign is needed

devleaks commented 6 years ago

OK. Thanks for the feedback. P.