Skip to content

Commit 2f8a732

Browse files
andrewjfreyerzeridon
authored andcommitted
0.2.199
Add public device name (from cache) to presence message published in response to "KNOWN STATIC DEVICES" message posted to topic 'monitor/scan/known static devices'
1 parent efe74dc commit 2f8a732

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

monitor.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# ----------------------------------------------------------------------------------------
2626

2727
#VERSION NUMBER
28-
export version=0.2.198
28+
export version=0.2.199
2929

3030
#COLOR OUTPUT FOR RICH OUTPUT
3131
ORANGE=$'\e[1;33m'
@@ -1100,7 +1100,9 @@ while true; do
11001100
publish_presence_message \
11011101
"id=$addr" \
11021102
"confidence=$device_state" \
1103+
"name=${known_public_device_name[$addr]}" \
11031104
"type=KNOWN_MAC"
1105+
11041106
done
11051107

11061108
elif [[ $mqtt_topic_branch =~ .*ADD\ STATIC\ DEVICE.* ]] || [[ $mqtt_topic_branch =~ .*DELETE\ STATIC\ DEVICE.* ]]; then

0 commit comments

Comments
 (0)