SamZorSec / Open-Home-Automation

Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help with ha_mqtt_binary_sensor_ble_scanner

drbent15 opened this issue · comments

First I would like to thank you for this sketch, just what I been looking for.

  1. Can you help me understand how to use "MAX_NON_ADV_PERIOD"?
    (Edit.: I think I understand it but anything over 5000 (5 secs) doesn't seem to work.)
  2. How best to implement a feature to only publish to mqtt when (RSSI() > -##)?
    "##" being any number enter by the user, like (65,75, or 80). This way I can kinda limit the area it can see
    the ble device.
    I have no Arduino sketching experience, so I wouldn't dare mess with a sketch that was written so beautifully. So your help would be much appreciated. Thanks in advanced
  1. because if more than 5s the program will be slowed to read and excetuted