You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
####Will this be able to track my Apple Watch/Smart Watch?
6
+
<details><summary> Will this be able to track my Apple Watch/Smart Watch?</summary>
17
7
18
-
<details>
19
8
Yes, with a caveat. Many users, including myself, have successfully added Apple Watch Bluetooth addresses to the `known_static_addresses` file. In my personal experience, an Apple Watch works just fine [once it has connected to at least one other Bluetooth device, apart from your iPhone](https://github.com/andrewjfreyer/monitor#my-phone-doesnt-seem-to-automatically-broadcast-an-anonymous-bluetooth-advertisement-what-can-i-do). Other users have reported that the Apple Watch will occasionally not respond to `monitor`. Your mileage using the Apple Watch and/or other low-power connectible Bluetooth devices may vary. I strongly recommend tracking phones.
20
-
</details>
21
9
22
-
####What special app do I need on my phone to get this to work?
10
+
</details><details><summary> What special app do I need on my phone to get this to work?</summary>
23
11
24
12
None, except in rare circumstances. The only requirement is that Bluetooth is left on. Works best with iPhones and Android phones that have peripheral mode enabled.
25
13
26
-
####Does `monitor` reduce battery life for my phone?
14
+
</details><details><summary> Does `monitor` reduce battery life for my phone?</summary>
27
15
28
16
Not noticeable in my several years of using techniques similar to this.
29
17
30
-
####How can I trigger an arrival scan?
18
+
</details><details><summary> How can I trigger an arrival scan?</summary>
31
19
32
20
Post a message with blank content to `monitor/scan/arrive`
33
21
34
-
####How can I trigger an depart scan?
22
+
</details><details><summary> How can I trigger an depart scan?</summary>
35
23
36
24
Post a message with blank content to `monitor/scan/depart`
37
25
38
-
####How can I trigger an arrive/depart scan from an automation in Home Assistant?
26
+
</details><details><summary> How can I trigger an arrive/depart scan from an automation in Home Assistant?</summary>
39
27
40
28
For an automation or script (or other service trigger), use:
41
29
@@ -51,19 +39,19 @@ For an automation or script (or other service trigger), use:
51
39
topic: location/scan/depart
52
40
```
53
41
54
-
#### How can I add a known device without manually entering an address?
42
+
</details><details><summary> How can I add a known device without manually entering an address?</summary>
55
43
56
44
Post a message with the mac address separated from an alias (optional) by a space to: `monitor/setup/add known device`
57
45
58
-
#### How can I delete a known device without manually editing an address?
46
+
</details><details><summary> How can I delete a known device without manually editing an address?</summary>
59
47
60
48
Post a message with the mac address to: `monitor/setup/delete known device`
61
49
62
-
#### How can I upgrade to the latest version without using ssh?
50
+
</details><details><summary> How can I upgrade to the latest version without using ssh?</summary>
63
51
64
52
Post a message with blank content to `monitor/scan/update` or `monitor/scan/updatebeta`
65
53
66
-
#### How can I restart a `monitor` node?
54
+
</details><details><summary> How can I restart a `monitor` node?</summary>
Or, post a message with blank content to `monitor/scan/restart`
75
63
76
-
#### Why don't I see RSSI for my iPhone/Andriod/whatever phone?
64
+
</details><details><summary> Why don't I see RSSI for my iPhone/Andriod/whatever phone?</summary>
77
65
78
66
See the RSSI section of this FAQ. You'll have to connect your phone to `monitor` first.
79
67
80
-
#### How do I force an RSSI update for a known device, like my phone?
68
+
</details><details><summary> How do I force an RSSI update for a known device, like my phone?</summary>
81
69
82
70
Post a message with blank content to `monitor/scan/rssi`
83
71
84
72
____
85
73
86
74
## *Wi-Fi Interference & Performance Issues*
87
75
88
-
#### I'm running 5GHz Wi-Fi, I don't use Bluetooth for anything else, and I don't care whether I interfere with my neighbor's devices. Can't I just issue a name scan every few seconds to get faster arrival and depart detection?
76
+
</details><details><summary> I'm running 5GHz Wi-Fi, I don't use Bluetooth for anything else, and I don't care whether I interfere with my neighbor's devices. Can't I just issue a name scan every few seconds to get faster arrival and depart detection?</summary>
89
77
90
78
Yes, use periodic scanning mode with `-r`.
91
79
92
-
#### Can I use other Bluetooth services while `monitor` is running?
80
+
</details><details><summary> Can I use other Bluetooth services while `monitor` is running?</summary>
93
81
94
82
No. Monitor needs exclusive use of the Bluetooth radio to function properly. This is why it is designed to run on inexpensive hardware like the Raspberry Pi Zero W.
95
83
96
-
#### Can `monitor` run on XYZ hardware or in XYZ container?
84
+
</details><details><summary> Can `monitor` run on XYZ hardware or in XYZ container?</summary>
97
85
98
86
Probably. The script has been designed to minimize dependencies as much as possible. That said, I can't guarantee or provide support to all systems.
99
87
100
-
#### Does `monitor` interfere with Wi-Fi, Zigbee, or Zwave?
88
+
</details><details><summary> Does `monitor` interfere with Wi-Fi, Zigbee, or Zwave?</summary>
101
89
102
90
It can, if it scans too frequently, especially if you're running `monitor` from internal Raspberry Pi radios. Try to use all techniques for reducing `name` scans, including using trigger-only depart mode `-tdr`. When in this mode, `monitor` will never scan when all devices are home. Instead, `monitor` will wait until a `monitor/scan/depart` message is sent. Personally, I use my front door lock as a depart scan trigger.
103
91
104
-
#### How can I check if a `monitor` node is up and hasn't shut down for some reason?
92
+
</details><details><summary> How can I check if a `monitor` node is up and hasn't shut down for some reason?</summary>
105
93
106
94
Post a message to `monitor/scan/echo`, and you'll receive a response at the topic `$mqtt_topicpath/$mqtt_publisher_identity/echo`
107
95
108
-
#### I *still* have interference and/or my ssh sessions to the raspberry pi are really slow and laggy. What gives?
96
+
</details><details><summary> I *still* have interference and/or my ssh sessions to the raspberry pi are really slow and laggy. What gives?</summary>
109
97
110
98
Cheap Wi-Fi chipsets and cheap Bluetooth chipsets can perform poorly together if operated at the same time, especially on Raspberry Pi devices. If you still experience interference in your network, switching to a Wi-Fi dongle can help.
111
99
112
-
#### I use a Bluetooth dongle, and `monitor` seems to become non-responsive after a while - what's going on?
100
+
</details><details><summary> I use a Bluetooth dongle, and `monitor` seems to become non-responsive after a while - what's going on?</summary>
113
101
114
102
Many Bluetooth dongles do not properly filter out duplicate advertisements, so `monitor` gets overwhelmed trying to filter out hundreds of reports, when it expects dozens. I'm working on a solution, but for now the best option is to switch to internal Bluetooth or, alternatively, you can try another Bluetooth dongle.
115
103
___
116
104
117
105
## *Monitor Logs & Debugging*
118
106
119
-
#### I keep seeing that my Bluetooth hardware is "cycling" in the logs - what does that mean?
107
+
</details><details><summary> I keep seeing that my Bluetooth hardware is "cycling" in the logs - what does that mean?</summary>
120
108
121
109
If more than one program or executable try to use the Bluetooth hardware at the same time, your Bluetooth hardware will report an error. To correct this error, the hardware needs to be taken offline, then brought back.
122
110
123
-
#### I can't do **XYZ**, is `monitor` broken?
111
+
</details><details><summary> I can't do **XYZ**, is `monitor` broken?</summary>
124
112
125
113
Run via command line and post log output to github. Else, access `journalctl` to show the most recent logs:
126
114
127
115
```bash
128
116
journalctl -u monitor -r
129
117
```
130
118
131
-
#### My Android phone doesn't seem to send any anonymous advertisements, no matter what I do. Is there any solution?
119
+
</details><details><summary> My Android phone doesn't seem to send any anonymous advertisements, no matter what I do. Is there any solution?</summary>
132
120
133
-
Some phones, like the LG ThinQ G7 include an option in settings to enable file sharing via bluetooth. As resported by Home Assistant forum user @jusdwy, access this option via Settings >Connected Devices > File Sharing > File Sharing ON. For other android phones, an app like [Beacon Simulator](https://play.google.com/store/apps/details?id=net.alea.beaconsimulator&hl=en_US) may be a good option. You may also be able to see more information about Bluetooth on your phone using [nRF Connect](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=en_US).
121
+
Some phones, like the LG ThinQ G7 include an option in settings to enable file sharing via bluetooth. As resported by Home Assistant forum user @jusdwy, access this option via Settings >Connected Devices > File Sharing > File Sharing ON. For other android phones, an app like [Beacon Simulator](https://play.google.com/store/apps/details?</summary>id=net.alea.beaconsimulator&hl=en_US) may be a good option. You may also be able to see more information about Bluetooth on your phone using [nRF Connect](https://play.google.com/store/apps/details?</summary>id=no.nordicsemi.android.mcp&hl=en_US).
134
122
135
123
Unfortunately, until Android OS includes at least one service that requires bluetooth peripheral mode to be enabled, Android devices will probably not advertise without an application running in the background. In short, as I understand it, Android/Google has been slow to adopt BTLE peripheral mode as an option in addition to the default central mode. [Here is a decently comprehensive list of phones that support peripheral mode](https://altbeacon.github.io/android-beacon-library/beacon-transmitter-devices.html), should an application choose to leverage the appropriate API. It does not appear as though the native OS has an option (outside of the file sharing option mentioned above on LG phones) to enable this mode.
136
124
137
125
Unfortunately, it seems to me that absent an application causing an advertisement to send, Android users will not be able to use monitor in the same way as iOS users or beacon users.
138
126
139
-
#### My phone doesn't seem to automatically broadcast an anonymous Bluetooth advertisement ... what can I do?
127
+
</details><details><summary> My phone doesn't seem to automatically broadcast an anonymous Bluetooth advertisement ... what can I do?</summary>
140
128
141
129
Many phones will only broadcast once they have already connected to *at least one* other Bluetooth device. Connect to a speaker, a car, a headset, or `monitor.sh -c [address]` and try again.
142
130
143
-
#### I have connected my phone to Bluetooth devices before but my phone doesn't seem to automatically broadcast an anonymous Bluetooth advertisement ... what can I do?
131
+
</details><details><summary> I have connected my phone to Bluetooth devices before but my phone doesn't seem to automatically broadcast an anonymous Bluetooth advertisement ... what can I do?</summary>
144
132
145
133
See above.
146
134
147
-
#### Why does my MQTT broker show connection and disconnection so often?
135
+
</details><details><summary> Why does my MQTT broker show connection and disconnection so often?</summary>
148
136
149
137
This is normal behavior for `mosquitto_pub` - nothing to worry about.
150
138
151
-
#### I updated and `monitor` is no longer working ... what gives?
139
+
</details><details><summary> I updated and `monitor` is no longer working ... what gives?</summary>
152
140
153
141
Make sure you've updated `mosquitto` to v1.5 or higher. In order to support a wider userbase, backward compatibility for old versions of `mosquitto` was dropped. It is alos strongly recommended that you upgrade to bash 4.4+.
154
142
155
-
#### I keep seeing MQTT Broker Offline messages in the `monitor` log. What's going on?
143
+
</details><details><summary> I keep seeing MQTT Broker Offline messages in the `monitor` log. What's going on?</summary>
156
144
157
145
mosquitto fails to connect to a broker if your password has certain special characters such as: `@`, `:`,`/` - if this is the case, the easiest solution is to create a new user for `monitor` with a different password.
158
146
159
-
#### Can I use a certfile for mosquitto instead of my password?
147
+
</details><details><summary> Can I use a certfile for mosquitto instead of my password?</summary>
160
148
161
149
Yes, specify a path for `mqtt_certificate_path` in mqtt_preferences.
162
150
163
151
____
164
152
165
153
## *Filters*
166
154
167
-
#### What filters do you personally use?
155
+
</details><details><summary> What filters do you personally use?</summary>
#### How do I use this as a device_tracker, in addition to the standard confidence messages?
172
+
</details><details><summary> How do I use this as a device_tracker, in addition to the standard confidence messages?</summary>
185
173
186
174
Set the option `PREF_DEVICE_TRACKER_REPORT` in your `behavior_preferences` file to true. If it's not there, add a line like this:
187
175
@@ -203,7 +191,7 @@ device_tracker:
203
191
204
192
The standard confidence report will also send.
205
193
206
-
#### How do I determine what values to set for filters?
194
+
</details><details><summary> How do I determine what values to set for filters?</summary>
207
195
208
196
Try using the verbose logging option `-V` to see what `monitor` sees when a new bluetooth device advertisement is seen. Then, power cycle the bluetooth radio on the device you'd like to track - you'll probably see a pattern develop with flags or manufacturers. Use these values to create your arrival filters!
209
197
@@ -213,7 +201,7 @@ ____
213
201
214
202
## *Other Questions*
215
203
216
-
#### It's annoying to have to keep track of mac addresses. Can't I just use a nickname for the mac addresses for MQTT topics?
204
+
</details><details><summary> It's annoying to have to keep track of mac addresses. Can't I just use a nickname for the mac addresses for MQTT topics?</summary>
217
205
218
206
Yes, this is now default behavior. All you have to do is provide a name next to the address in the `known_static_addresses` file. For example, if you have a known device with the mac address of 00:11:22:33:44:55 that you would like to call "Andrew's Phone":
219
207
@@ -237,11 +225,11 @@ The same is true for beacons in the `known_beacon_addresses` file as well:
237
225
238
226
To disable this feature, set `PREF_ALIAS_MODE=false` in your `behavior_preferences` file.
239
227
240
-
#### I don't care about a few devices that are reporting. Can I block them?
228
+
</details><details><summary> I don't care about a few devices that are reporting. Can I block them?</summary>
241
229
242
230
Yes. Create a file called `address_blacklist` in your configuration directory and add the mac addresses you'd like to block (or uuid-major-minor for iBeacons) one at a time.
243
231
244
-
#### I can't use the `device_tracker` platform with the default status strings of `home` and `not_home` with my home automation software. What can I do?
232
+
</details><details><summary> I can't use the `device_tracker` platform with the default status strings of `home` and `not_home` with my home automation software. What can I do?</summary>
0 commit comments