Skip to content

Commit 30d74fd

Browse files
Merge branch 'master' into beta
2 parents 79f9922 + cf38a8d commit 30d74fd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ done
158158
# ----------------------------------------------------------------------------------------
159159

160160
#LIST CONNECTED DEVICES
161-
previously_connected_devices=$(echo "quit" | bluetoothctl | grep -Eio "Device ([0-9A-F]{2}:){5}[0-9A-F]{2}" | sed 's/Device //gi')
161+
previously_connected_devices=$(echo "paired-devices" | bluetoothctl | grep -Eio "Device ([0-9A-F]{2}:){5}[0-9A-F]{2}" | sed 's/Device //gi')
162162

163163
#POPULATE KNOWN DEVICE ADDRESS
164164
for addr in "${known_static_addresses[@]^^}"; do

support/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ For an automation or script (or other service trigger), use:
3333
```yaml
3434
service: 'mqtt.publish'
3535
data:
36-
topic: location/scan/arrive
36+
topic: monitor/scan/arrive
3737
```
3838
3939
```yaml
4040
service: 'mqtt.publish'
4141
data:
42-
topic: location/scan/depart
42+
topic: monitor/scan/depart
4343
```
4444
</details>
4545
@@ -139,7 +139,7 @@ journalctl -u monitor -r
139139

140140
<details><summary><b> My Android phone doesn't seem to send any anonymous advertisements, no matter what I do. Is there any solution?</b></summary><p><p>
141141

142-
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?</b></summary><p><p>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?</b></summary><p><p>id=no.nordicsemi.android.mcp&hl=en_US).
142+
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).
143143

144144
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.
145145

support/mqtt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ mqtt_error_handler () {
168168
[[ ${received^^} =~ .*NETWORK.* ]] && [[ ${received^^} =~ .*UNREACHABLE.* ]] && return_value=0 && print_message="network is down. enqueuing command to try again after a delay"
169169
[[ ${received^^} =~ .*LOOKUP ERROR.* ]] && return_value=0 && print_message="issue connecting to mqtt server (lookup error). enqueuing command to try again after a delay"
170170

171+
171172
if [ -n "$last_error_message" ] && [ "$last_error_message" == "$print_message" ]; then
172173
#HERE, WE HAVE A REPEATED ERROR
173174
duplicate_error_count=$((duplicate_error_count + 1 ))

0 commit comments

Comments
 (0)