ble2mqtt_1 | Starting system message bus: dbus.
ble2mqtt_1 | 2022-05-22 17:10:50 INFO: Starting BLE2MQTT version 0.1.1
ble2mqtt_1 | 2022-05-22 17:10:50 INFO: Connected to 192.168.55.10
ble2mqtt_1 | 2022-05-22 17:10:52 INFO: Connected to 02:F6:21:7E:10:96
ble2mqtt_1 | 2022-05-22 17:10:53 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'closed', 'position': 100}}
ble2mqtt_1 | 2022-05-22 17:11:02 ERROR: [Blind_AM43_0209db993941] connection problem, attempts=1
ble2mqtt_1 | 2022-05-22 17:12:05 INFO: Connected to 02:09:DB:99:39:41
ble2mqtt_1 | 2022-05-22 17:12:05 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'closed', 'position': 100}}
ble2mqtt_1 | 2022-05-22 17:14:06 INFO: [Blind_AM43_0209db993941] set mode cover to "CLOSE"
ble2mqtt_1 | 2022-05-22 17:14:06 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'closing', 'position': 100}}
ble2mqtt_1 | 2022-05-22 17:14:06 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'closing', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:07 INFO: [Blind_AM43_02f6217e1096] set mode cover to "CLOSE"
ble2mqtt_1 | 2022-05-22 17:14:07 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'closing', 'position': 100}}
ble2mqtt_1 | 2022-05-22 17:14:07 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'closing', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:10 INFO: [Blind_AM43_0209db993941] set mode cover to "STOP"
ble2mqtt_1 | 2022-05-22 17:14:11 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'stopped', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:11 INFO: [Blind_AM43_02f6217e1096] set mode cover to "STOP"
ble2mqtt_1 | 2022-05-22 17:14:11 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'stopped', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:12 INFO: [Blind_AM43_0209db993941] set mode cover to "OPEN"
ble2mqtt_1 | 2022-05-22 17:14:12 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'opening', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:12 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'opening', 'position': 81}}
ble2mqtt_1 | 2022-05-22 17:14:13 INFO: [Blind_AM43_02f6217e1096] set mode cover to "OPEN"
ble2mqtt_1 | 2022-05-22 17:14:13 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'opening', 'position': 99}}
ble2mqtt_1 | 2022-05-22 17:14:14 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'opening', 'position': 82}}
ble2mqtt_1 | 2022-05-22 17:14:18 INFO: [Blind_AM43_0209db993941] Maximum position reached. Set to OPEN
ble2mqtt_1 | 2022-05-22 17:14:18 INFO: [Blind_AM43_0209db993941] send state={'linkquality': 79, 'battery': 96, 'illuminance': 0.0, 'cover': {'state': 'open', 'position': 100}}
ble2mqtt_1 | 2022-05-22 17:14:19 INFO: [Blind_AM43_02f6217e1096] Maximum position reached. Set to OPEN
ble2mqtt_1 | 2022-05-22 17:14:19 INFO: [Blind_AM43_02f6217e1096] send state={'linkquality': 87, 'battery': 94, 'illuminance': 0.0, 'cover': {'state': 'open', 'position': 100}}
// devices are turned off
ble2mqtt_1 | 2022-05-22 17:15:43 WARNING: Error while connecting to Blind_AM43_02f6217e1096, Device with address 02:F6:21:7E:10:96 was not found. BleakError('Device with address 02:F6:21:7E:10:96 was not found.'), attempts=1
ble2mqtt_1 | 2022-05-22 17:15:45 ERROR: [Blind_AM43_0209db993941] connection problem, attempts=1
ble2mqtt_1 | 2022-05-22 17:16:45 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=1
ble2mqtt_1 | 2022-05-22 17:16:50 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.Failed] No discovery started BleakDBusError('org.bluez.Error.Failed', 'No discovery started'), failure_count=1
ble2mqtt_1 | 2022-05-22 17:17:50 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=2
ble2mqtt_1 | 2022-05-22 17:17:52 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.bluez.Error.Failed] No discovery started BleakDBusError('org.bluez.Error.Failed', 'No discovery started'), failure_count=2
ble2mqtt_1 | 2022-05-22 17:18:59 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.bluez.Error.Failed] No discovery started BleakDBusError('org.bluez.Error.Failed', 'No discovery started'), failure_count=3
ble2mqtt_1 | 2022-05-22 17:18:59 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.Failed] No discovery started BleakDBusError('org.bluez.Error.Failed', 'No discovery started'), failure_count=3
ble2mqtt_1 | 2022-05-22 17:20:10 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=4
ble2mqtt_1 | 2022-05-22 17:20:11 ERROR: [Blind_AM43_0209db993941] connection problem, attempts=2
ble2mqtt_1 | 2022-05-22 17:21:20 WARNING: Error while connecting to Blind_AM43_02f6217e1096, Device with address 02:F6:21:7E:10:96 was not found. BleakError('Device with address 02:F6:21:7E:10:96 was not found.'), attempts=2
ble2mqtt_1 | 2022-05-22 17:21:21 WARNING: Error while connecting to Blind_AM43_0209db993941, Device with address 02:09:DB:99:39:41 was not found. BleakError('Device with address 02:09:DB:99:39:41 was not found.'), attempts=3
ble2mqtt_1 | 2022-05-22 17:22:21 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.UnknownObject] Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "SetDiscoveryFilter" with signature "a{sv}" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=4
ble2mqtt_1 | 2022-05-22 17:22:28 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.Failed] No discovery started BleakDBusError('org.bluez.Error.Failed', 'No discovery started'), failure_count=5
ble2mqtt_1 | 2022-05-22 17:22:28 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 17:22:37 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 17:23:32 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=5
ble2mqtt_1 | 2022-05-22 17:23:32 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Can't get device info: No such device
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 17:23:41 WARNING: Restarting bluetoothd finished
// and now adapter will break
ble2mqtt_1 | 2022-05-22 18:39:05 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Can't get device info: No such device
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 18:39:15 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 18:39:25 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=1
ble2mqtt_1 | 2022-05-22 18:40:26 WARNING: Error while connecting to Blind_AM43_02f6217e1096, Device with address 02:F6:21:7E:10:96 was not found. BleakError('Device with address 02:F6:21:7E:10:96 was not found.'), attempts=14
ble2mqtt_1 | 2022-05-22 18:40:36 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.UnknownObject] Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn't exist
ble2mqtt_1 | BleakDBusError('org.freedesktop.DBus.Error.UnknownObject', 'Method "StopDiscovery" with signature "" on interface "org.bluez.Adapter1" doesn\'t exist\n'), failure_count=2
ble2mqtt_1 | 2022-05-22 18:41:36 WARNING: Error while connecting to Blind_AM43_02f6217e1096, Device with address 02:F6:21:7E:10:96 was not found. BleakError('Device with address 02:F6:21:7E:10:96 was not found.'), attempts=15
ble2mqtt_1 | 2022-05-22 18:41:46 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | Can't init device hci0: Input/output error (5)
ble2mqtt_1 | 2022-05-22 18:42:04 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 18:42:07 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.bluez.Error.InProgress] Operation already in progress BleakDBusError('org.bluez.Error.InProgress', 'Operation already in progress'), failure_count=3
ble2mqtt_1 | 2022-05-22 18:42:36 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
ble2mqtt_1 | 2022-05-22 18:43:09 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 18:43:09 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 18:43:12 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.NotReady] Resource Not Ready BleakDBusError('org.bluez.Error.NotReady', 'Resource Not Ready'), failure_count=1
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
ble2mqtt_1 | 2022-05-22 18:43:37 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 18:43:40 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.bluez.Error.NotReady] Resource Not Ready BleakDBusError('org.bluez.Error.NotReady', 'Resource Not Ready'), failure_count=4
ble2mqtt_1 | 2022-05-22 18:44:12 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
ble2mqtt_1 | 2022-05-22 18:44:39 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 18:44:40 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 18:44:42 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.NotReady] Resource Not Ready BleakDBusError('org.bluez.Error.NotReady', 'Resource Not Ready'), failure_count=2
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
...
ble2mqtt_1 | 2022-05-22 20:27:30 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 20:27:33 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.bluez.Error.NotReady] Resource Not Ready BleakDBusError('org.bluez.Error.NotReady', 'Resource Not Ready'), failure_count=4
ble2mqtt_1 | 2022-05-22 20:28:02 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
ble2mqtt_1 | 2022-05-22 20:28:29 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 20:28:32 WARNING: Error while connecting to Blind_AM43_02f6217e1096, [org.bluez.Error.NotReady] Resource Not Ready BleakDBusError('org.bluez.Error.NotReady', 'Resource Not Ready'), failure_count=2
ble2mqtt_1 | 2022-05-22 20:28:33 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | Can't init device hci0: Connection timed out (110)
ble2mqtt_1 | 2022-05-22 20:29:00 WARNING: Restarting bluetoothd finished
ble2mqtt_1 | 2022-05-22 20:29:03 WARNING: Error while connecting to Blind_AM43_0209db993941, [org.freedesktop.DBus.Error.AccessDenied] Client tried to send a message other than Hello without being registered BleakDBusError('org.freedesktop.DBus.Error.AccessDenied', 'Client tried to send a message other than Hello without being registered'), failure_count=5
ble2mqtt_1 | 2022-05-22 20:29:03 WARNING: Restarting bluetoothd...
ble2mqtt_1 | Stopping bluetooth: /usr/sbin/bluetoothd.
ble2mqtt_1 | Starting bluetooth: bluetoothd.
ble2mqtt_1 | 2022-05-22 20:29:16 ERROR: Caught exception: {'message': 'Future exception was never retrieved', 'exception': EOFError(), 'future': <Future finished exception=EOFError()>}
ble2mqtt_1 | 2022-05-22 20:29:16 ERROR: Future exception was never retrieved
ble2mqtt_1 | future: <Future finished exception=EOFError()>
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/dbus_next/aio/message_bus.py", line 365, in _message_reader
ble2mqtt_1 | if self._unmarshaller.unmarshall():
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/dbus_next/_private/unmarshaller.py", line 304, in unmarshall
ble2mqtt_1 | self._unmarshall()
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/dbus_next/_private/unmarshaller.py", line 243, in _unmarshall
ble2mqtt_1 | self.read(16, prefetch=True)
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/dbus_next/_private/unmarshaller.py", line 91, in read
ble2mqtt_1 | raise EOFError()
ble2mqtt_1 | EOFError
ble2mqtt_1 | 2022-05-22 20:29:16 INFO: Shutting down...
ble2mqtt_1 | 2022-05-22 20:29:16 INFO: Closing ble2mqtt service
ble2mqtt_1 | 2022-05-22 20:29:16 INFO: Cancelling 6 outstanding tasks
ble2mqtt_1 | 2022-05-22 20:29:16 ERROR: Unexpected exception while cancelling tasks! <Task finished name='Task-2' coro=<Ble2Mqtt._connect_forever() done, defined at /root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py:956> exception=ConnectionClosedError()>
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 960, in _connect_forever
ble2mqtt_1 | mqtt_connection = await self._mqtt_client.connect(
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/aio_mqtt/client.py", line 204, in connect
ble2mqtt_1 | self._reader, self._writer = await aio.open_connection(
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/streams.py", line 52, in open_connection
ble2mqtt_1 | transport, _ = await loop.create_connection(
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection
ble2mqtt_1 | sock = await self._connect_sock(
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock
ble2mqtt_1 | await self.sock_connect(sock, address)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 499, in sock_connect
ble2mqtt_1 | return await fut
ble2mqtt_1 | asyncio.exceptions.CancelledError
ble2mqtt_1 |
ble2mqtt_1 | During handling of the above exception, another exception occurred:
ble2mqtt_1 |
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 59, in cancel_tasks
ble2mqtt_1 | await t
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 984, in _connect_forever
ble2mqtt_1 | await self._mqtt_client.publish(
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/aio_mqtt/client.py", line 289, in publish
ble2mqtt_1 | self._raise_if_not_connected()
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/aio_mqtt/client.py", line 354, in _raise_if_not_connected
ble2mqtt_1 | raise ConnectionClosedError()
ble2mqtt_1 | aio_mqtt.exceptions.ConnectionClosedError
ble2mqtt_1 | 2022-05-22 20:29:16 ERROR: Task raises exception while cancelling parent coroutine that waits for it <Task finished name='Task-2' coro=<Ble2Mqtt._connect_forever() done, defined at /root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py:956> exception=ConnectionClosedError()>
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 73, in run_tasks_and_cancel_on_first_return
ble2mqtt_1 | done, pending = await aio.wait(tasks, return_when=return_when)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/tasks.py", line 413, in wait
ble2mqtt_1 | return await _wait(fs, timeout, return_when, loop)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/tasks.py", line 525, in _wait
ble2mqtt_1 | await waiter
ble2mqtt_1 | asyncio.exceptions.CancelledError
ble2mqtt_1 |
ble2mqtt_1 | During handling of the above exception, another exception occurred:
ble2mqtt_1 |
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 82, in run_tasks_and_cancel_on_first_return
ble2mqtt_1 | t.result()
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 59, in cancel_tasks
ble2mqtt_1 | await t
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 984, in _connect_forever
ble2mqtt_1 | await self._mqtt_client.publish(
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/aio_mqtt/client.py", line 289, in publish
ble2mqtt_1 | self._raise_if_not_connected()
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/aio_mqtt/client.py", line 354, in _raise_if_not_connected
ble2mqtt_1 | raise ConnectionClosedError()
ble2mqtt_1 | aio_mqtt.exceptions.ConnectionClosedError
ble2mqtt_1 | 2022-05-22 20:29:16 WARNING: Error on MQTT disconnecting: ConnectionClosedError()
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/__main__.py", line 108, in amain
ble2mqtt_1 | await service.start()
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 762, in start
ble2mqtt_1 | result = await run_tasks_and_cancel_on_first_return(
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/ble2mqtt.py", line 73, in run_tasks_and_cancel_on_first_return
ble2mqtt_1 | done, pending = await aio.wait(tasks, return_when=return_when)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/tasks.py", line 413, in wait
ble2mqtt_1 | return await _wait(fs, timeout, return_when, loop)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/tasks.py", line 525, in _wait
ble2mqtt_1 | await waiter
ble2mqtt_1 | asyncio.exceptions.CancelledError
ble2mqtt_1 |
ble2mqtt_1 | During handling of the above exception, another exception occurred:
ble2mqtt_1 |
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
ble2mqtt_1 | return loop.run_until_complete(main)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
ble2mqtt_1 | return future.result()
ble2mqtt_1 | asyncio.exceptions.CancelledError
ble2mqtt_1 |
ble2mqtt_1 | During handling of the above exception, another exception occurred:
ble2mqtt_1 |
ble2mqtt_1 | Traceback (most recent call last):
ble2mqtt_1 | File "/root/.local/bin/ble2mqtt", line 8, in <module>
ble2mqtt_1 | sys.exit(main())
ble2mqtt_1 | File "/root/.local/lib/python3.9/site-packages/ble2mqtt/__main__.py", line 140, in main
ble2mqtt_1 | aio.run(amain(config), debug=(config['log_level'].upper() == 'DEBUG'))
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/runners.py", line 47, in run
ble2mqtt_1 | _cancel_all_tasks(loop)
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/runners.py", line 63, in _cancel_all_tasks
ble2mqtt_1 | loop.run_until_complete(
ble2mqtt_1 | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 645, in run_until_complete
ble2mqtt_1 | raise RuntimeError('Event loop stopped before Future completed.')
ble2mqtt_1 | RuntimeError: Event loop stopped before Future completed.