Limych / addon-presence-monitor

Hassio Add-on. Passive Bluetooth presence detection of beacons, cell phones, and other Bluetooth devices.
MIT License
55 stars 9 forks source link

Ability to edit "behavior_preferences" options #30

Closed TarcisioMenezes closed 1 year ago

TarcisioMenezes commented 2 years ago

I'd like to be able to edit the behavior_preferences file/options.

Example:

MAX RETRY ATTEMPTS FOR ARRIVAL

PREF_ARRIVAL_SCAN_ATTEMPTS=1

MAX RETRY ATTEMPTS FOR DEPART

PREF_DEPART_SCAN_ATTEMPTS=2

SECONDS UNTIL A BEACON IS CONSIDERED EXPIRED

PREF_BEACON_EXPIRATION=240

MINIMUM TIME BEWTEEN THE SAME TYPE OF SCAN (ARRIVE SCAN, DEPART SCAN)

PREF_MINIMUM_TIME_BETWEEN_SCANS=15

ARRIVE TRIGGER FILTER(S)

PREF_PASS_FILTER_ADV_FLAGS_ARRIVE=".*" PREF_PASS_FILTER_MANUFACTURER_ARRIVE="Apple"

ARRIVE TRIGGER NEGATIVE FILTER(S)

PREF_FAIL_FILTER_ADV_FLAGS_ARRIVE="NONE" PREF_FAIL_FILTER_MANUFACTURER_ARRIVE="NONE"

If true, this value will cause monitor to report a 'home' or 'not_home' message to ... /device_tracker conforming to device_tracker mqtt protocol.

PREF_DEVICE_TRACKER_REPORT="true"

This value is either true or false and determines whether monitor publishes when a scan begins and when a scan ends

PREF_MQTT_REPORT_SCAN_MESSAGES="true"

Thank you!

TarcisioMenezes commented 1 year ago

You can edit /home/pi/monitor/behavior_preferences

Those are the options available: https://github.com/andrewjfreyer/monitor#fine-tuning