Skip to content

Commit 1924f86

Browse files
committed
0.2.196
1 parent 5b50a77 commit 1924f86

File tree

1 file changed

+37
-49
lines changed

1 file changed

+37
-49
lines changed

support/README.md

Lines changed: 37 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,29 @@
11
# *Frequenty Asked Questions:*
2-
[***Basics***](#monitor-basics)
3-
4-
[***Wi-Fi Interference & Performance***](#wi-fi-interference--performance-issues)
5-
6-
[***Debugging***](#monitor-logs--debugging)
7-
8-
[***Filters***](#filters)
9-
10-
[***Miscellaneous***](#other-questions)
11-
122
____
133

14-
## *Monitor Basics*
4+
## *Basics*
155

16-
#### 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>
177

18-
<details>
198
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>
219

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>
2311

2412
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.
2513

26-
#### Does `monitor` reduce battery life for my phone?
14+
</details><details><summary> Does `monitor` reduce battery life for my phone?</summary>
2715

2816
Not noticeable in my several years of using techniques similar to this.
2917

30-
#### How can I trigger an arrival scan?
18+
</details><details><summary> How can I trigger an arrival scan?</summary>
3119

3220
Post a message with blank content to `monitor/scan/arrive`
3321

34-
#### How can I trigger an depart scan?
22+
</details><details><summary> How can I trigger an depart scan?</summary>
3523

3624
Post a message with blank content to `monitor/scan/depart`
3725

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>
3927

4028
For an automation or script (or other service trigger), use:
4129

@@ -51,19 +39,19 @@ For an automation or script (or other service trigger), use:
5139
topic: location/scan/depart
5240
```
5341
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>
5543
5644
Post a message with the mac address separated from an alias (optional) by a space to: `monitor/setup/add known device`
5745

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>
5947

6048
Post a message with the mac address to: `monitor/setup/delete known device`
6149

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>
6351

6452
Post a message with blank content to `monitor/scan/update` or `monitor/scan/updatebeta`
6553

66-
#### How can I restart a `monitor` node?
54+
</details><details><summary> How can I restart a `monitor` node?</summary>
6755

6856
Via command line:
6957

@@ -73,98 +61,98 @@ sudo systemctl restart monitor
7361

7462
Or, post a message with blank content to `monitor/scan/restart`
7563

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>
7765

7866
See the RSSI section of this FAQ. You'll have to connect your phone to `monitor` first.
7967

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>
8169

8270
Post a message with blank content to `monitor/scan/rssi`
8371

8472
____
8573

8674
## *Wi-Fi Interference & Performance Issues*
8775

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>
8977

9078
Yes, use periodic scanning mode with `-r`.
9179

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>
9381

9482
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.
9583

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>
9785

9886
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.
9987

100-
#### Does `monitor` interfere with Wi-Fi, Zigbee, or Zwave?
88+
</details><details><summary> Does `monitor` interfere with Wi-Fi, Zigbee, or Zwave?</summary>
10189

10290
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.
10391

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>
10593

10694
Post a message to `monitor/scan/echo`, and you'll receive a response at the topic `$mqtt_topicpath/$mqtt_publisher_identity/echo`
10795

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>
10997

11098
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.
11199

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>
113101

114102
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.
115103
___
116104

117105
## *Monitor Logs & Debugging*
118106

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>
120108

121109
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.
122110

123-
#### I can't do **XYZ**, is `monitor` broken?
111+
</details><details><summary> I can't do **XYZ**, is `monitor` broken?</summary>
124112

125113
Run via command line and post log output to github. Else, access `journalctl` to show the most recent logs:
126114

127115
```bash
128116
journalctl -u monitor -r
129117
```
130118

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>
132120

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).
134122

135123
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.
136124

137125
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.
138126

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>
140128

141129
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.
142130

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>
144132

145133
See above.
146134

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>
148136

149137
This is normal behavior for `mosquitto_pub` - nothing to worry about.
150138

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>
152140

153141
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+.
154142

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>
156144

157145
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.
158146

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>
160148

161149
Yes, specify a path for `mqtt_certificate_path` in mqtt_preferences.
162150

163151
____
164152

165153
## *Filters*
166154

167-
#### What filters do you personally use?
155+
</details><details><summary> What filters do you personally use?</summary>
168156

169157
```bash
170158
@@ -177,11 +165,11 @@ PREF_FAIL_FILTER_MANUFACTURER_ARRIVE=\"Google|Samsung\"
177165
PREF_FAIL_FILTER_MANUFACTURER_ARRIVE=\"NONE\"
178166
```
179167

180-
#### What are the default filters for the PDU filter option?
168+
</details><details><summary> What are the default filters for the PDU filter option?</summary>
181169

182170
```ADV_IND|ADV_SCAN_IND|ADV_NONCONN_IND|SCAN_RSP```
183171

184-
#### 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>
185173

186174
Set the option `PREF_DEVICE_TRACKER_REPORT` in your `behavior_preferences` file to true. If it's not there, add a line like this:
187175

@@ -203,7 +191,7 @@ device_tracker:
203191

204192
The standard confidence report will also send.
205193

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>
207195

208196
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!
209197

@@ -213,7 +201,7 @@ ____
213201

214202
## *Other Questions*
215203

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>
217205

218206
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":
219207

@@ -237,11 +225,11 @@ The same is true for beacons in the `known_beacon_addresses` file as well:
237225

238226
To disable this feature, set `PREF_ALIAS_MODE=false` in your `behavior_preferences` file.
239227

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>
241229

242230
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.
243231

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>
245233

246234
Set these options in `behavior_preferences`:
247235

0 commit comments

Comments
 (0)