A Node-RED node which uses l2ping to determine the presence of one or more bluetooth devices. This node does provide the collective bluetooth state. Means, only if no bluetooth device at all is reachable, "not-present" will be signalized.
The node uses https://github.com/cmvee/bt-presence
Run the following command in the root directory of your Node-RED install or use the "Manage palette"
npm install node-red-contrib-bt-presence
Currently (2017-12-19) a patch for bt-presence is necessary: cmvee/bt-presence#3 Make sure that this change is used. You will need to patch it manually right now.
- Add the bluetooth devices you want to scan. To enter more than one, use a comma to separate them.
- Set the scan interval.
- Deploy your flow
- "present" will be signalized in msg.payload in case of presence. Otherwise "not-present"
Thanks to "cmvee" for the npm modul "bt-presence" which this node-red node uses.