Skip to content

Commit cf38a8d

Browse files
Merge pull request #276 from andrewjfreyer/beta
Merge to Master
2 parents 241c826 + c68b576 commit cf38a8d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,9 @@ PREF_DEVICE_TRACKER_REPORT|false|If true, this value will cause `monitor` to rep
511511
PREF_DEVICE_TRACKER_HOME_STRING|home|If `PREF_DEVICE_TRACKER_REPORT` is true, this is the string that is reported to the device_tracker when the device is home.
512512
PREF_DEVICE_TRACKER_AWAY_STRING|not_home|If `PREF_DEVICE_TRACKER_REPORT` is true, this is the string that is reported to the device_tracker when the device is not home.
513513
PREF_DEVICE_TRACKER_TOPIC_BRANCH|device_tracker|If `PREF_DEVICE_TRACKER_REPORT` is true, this is last path element of the mqtt topic path that will be used to publish the device tracker message.
514-
PREF_ADVERTISEMENT_OBSERVED_INTERVAL_STEP|This is the minimum interval used to estimate advertisement intervals reported in the MQTT message. Default is 15 seconds.
515-
PREF_DEPART_SCAN_INTERVAL|If using periodic scanning mode, this is the minimum interval at which depart scans are triggered automatically.
516-
PREF_ARRIVE_SCAN_INTERVAL|If using periodic scanning mode, this is the minimum interval at which arrive scans are triggered automatically.
514+
PREF_ADVERTISEMENT_OBSERVED_INTERVAL_STEP|15|This is the minimum interval (in seconds) used to estimate advertisement intervals reported in the MQTT message.
515+
PREF_DEPART_SCAN_INTERVAL|30|If using periodic scanning mode, this is the minimum interval (in seconds) at which depart scans are triggered automatically.
516+
PREF_ARRIVE_SCAN_INTERVAL|15|If using periodic scanning mode, this is the minimum interval (in seconds) at which arrive scans are triggered automatically.
517517

518518

519519
## RSSI Tracking
@@ -541,6 +541,10 @@ message: -99 through 0
541541

542542
If an rssi measurement cannot be obtained, the value of -99 is sent.
543543

544+
## Report known states
545+
546+
It is also possible tell monitor to report all currently known device states by sending an MQTT message to something like `monitor/first floor/KNOWN DEVICE STATES`. monitor.sh will then iterate over all known static addresses and report the current confidence level. This may be useful in home assistant to get the current state after a home assistant restart.
547+
544548
</details>
545549

546550
Anything else? Post a [question.](https://github.com/andrewjfreyer/monitor/issues/new)

monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ while true; do
12031203
#exit
12041204
exit 0
12051205

1206-
elif [[ $mqtt_topic_branch =~ .*ECHO.* ]]; then
1206+
elif [[ $mqtt_topic_branch =~ .*ECHO.* ]] && [[ -z "$data_of_instruction" ]]; then
12071207
$PREF_VERBOSE_LOGGING && log "${GREEN}[CMD-INST] ${NC}[${GREEN}pass mqtt${NC}] echo ${NC}"
12081208

12091209
mqtt_echo

0 commit comments

Comments
 (0)