Philips Hue Motion-Sensor to AppleHomeKit

I have built a flow with which it is possible to connect the Philips Hue motion detector to Apple HomeKit. This provides the possibility to receive a notification as soon as the motion detector is triggered.

You need to install the following Nodes:

  • node-red-contrib-homekit
  • node-red-contrib-huemagic

There will still be a flow in which it will be possible to interrupt or execute the notification with a dashbutton. If you have questions contact me: http://www.imakeyouintelligent.com/

[{"id":"e7648e5b.c18458","type":"hue-motion","z":"99c7e5c.9dd5798","name":"Treppenhaus 2.OG Motion Sensor","bridge":"f35d62f4.17ab98","sensorid":"8","x":180,"y":140,"wires":[["d21dc881.ec5ae8"]]},{"id":"6c3d31ec.f01c48","type":"change","z":"99c7e5c.9dd5798","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"MotionDetected","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.MotionDetected","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":120,"wires":[["f543dc27.ebba4"]]},{"id":"533ab53a.aa6ae4","type":"switch","z":"99c7e5c.9dd5798","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","outputs":2,"x":590,"y":140,"wires":[["6c3d31ec.f01c48"],["c44d6315.4d3018"]]},{"id":"d21dc881.ec5ae8","type":"change","z":"99c7e5c.9dd5798","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.motion","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":140,"wires":[["533ab53a.aa6ae4"]]},{"id":"c44d6315.4d3018","type":"change","z":"99c7e5c.9dd5798","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"MotionDetected","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload.MotionDetected","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":160,"wires":[["f543dc27.ebba4"]]},{"id":"f543dc27.ebba4","type":"homekit-service","z":"99c7e5c.9dd5798","accessory":"8e940f35.deb528","name":"MotionSensor Treppenhaus 2.OG","serviceName":"MotionSensor","x":1080,"y":140,"wires":[[]]},{"id":"f35d62f4.17ab98","type":"hue-bridge","z":"","name":"Philips hue 2.OG","bridge":"192.168.178.82","key":"1c9-iDOTUO1F6sdEy3rYArh6oYkrbH9zHy3eXwpO","interval":"3000"},{"id":"8e940f35.deb528","type":"homekit-accessory","z":"","accessoryName":"Hue MotionSensor Treppenhaus - 2.OG","pinCode":"111-11-111","port":"","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","accessoryType":"10"}]

Flow Info

Created 7 years, 10 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x3)
  • switch (x1)
Other

Tags

  • Homekit
  • Philips
  • Hue
  • MotionSensor
  • MotionDetection
  • Apple
  • Huebridge
  • Hue-Motion
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option