A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
When the switchbot fails to connect, the worker doesn't retry the action. With this change this is solved used the base worker retry function.
Also the worker has been modified to store the current state of the switch son now you can see the correct state in the MQTT status and now if the status has changed or not
Fixes #231
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
Description
When the switchbot fails to connect, the worker doesn't retry the action. With this change this is solved used the base worker retry function.
Also the worker has been modified to store the current state of the switch son now you can see the correct state in the MQTT status and now if the status has changed or not
Fixes #231
Type of change
Please delete options that are not relevant.