sbernhard / node-red-contrib-bt-presence

Node-RED node to scan for available bluetooth devices using l2ping
https://bernhard-suttner.de
Apache License 2.0
1 stars 4 forks source link

(not really an issue, but a question) How do I use it? #7

Open Just-another-pleb opened 4 years ago

Just-another-pleb commented 4 years ago

I have a mobile phone with BT in/on it.

It is "paired" with this machine via bluetooth. (Not connected now)

I add your node, but then what?

I fail to understand how to get it working.

In the preferences I found the mobile phone and copied its MAC address and put it in the node.

All I get is false coming out every minute.

The phone's bluetooth is on and it is discoverable.

Changing the time from 60 to 10 has little effect that I can see. Is that time scan time? It seems to be from the name. But I want to be sure.

Padamdam commented 4 years ago

I have a mobile phone with BT in/on it.

It is "paired" with this machine via bluetooth. (Not connected now)

I add your node, but then what?

I fail to understand how to get it working.

In the preferences I found the mobile phone and copied its MAC address and put it in the node.

All I get is false coming out every minute.

The phone's bluetooth is on and it is discoverable.

Changing the time from 60 to 10 has little effect that I can see. Is that time scan time? It seems to be from the name. But I want to be sure.

Hi,

From what I've experienced, the time value is in Seconds (interval between pings). Also, it seems that the node only outputs when the status has changed (ie. it won't output a message if the payload : true/false hasn't changed).

Your situation seems weird to me : you getting multiple false values.

You might wanna check that your device is discoverable and that you haven't made any typo while copying it. My Mac adresses are in this format AA:BB:CC:DD:EE or aa:bb:cc:dd:ee (both are working).

FYI I only tested with Mac and iPhones and iPads.

Regards, Adam

sbernhard commented 4 years ago

See: https://www.loxwiki.eu/display/LOX/Anwesenheitserkennung+mit+Node-RED