Closed rayzorben closed 1 year ago
If the device state didn't change, it sends the current value every minute. To avoid spamming MQTT and to keep the smart home notified, e.g. after rebooting. If the device is not present, the first presence packet will force ble2mqtt to send info to MQTT. If the device is present, the threshold defines how many seconds it should wait since the last ble advertising packet to mark the device as not present.
Checks are done every second, but using the rules above.
Renaming topics is not supported, 'case mqtt is more a transport layer than a tool for visualization.
Trying this out for the first time, and I had a few questions.
threshold
of when a device is considered away. However it seems like it is only checking about once per minute.The next issue pertains to that - as you can see it checked for the Govee from 19:55-19:58 before finally checking at 19:59 for the OnePlus. And there are multiple times that it doesn't check for the OnePlus. This phone is actually paired to bluetoothctl