home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.47k stars 30.33k forks source link

Lock SwitchBot Bluetooth connection takes a long time when using local adapter but OK with proxy #93171

Closed KitHubek closed 1 year ago

KitHubek commented 1 year ago

The problem

@bdraco

Iam using HA with Yours fix esphome folder in dir custom component and all as i wrote in this https://github.com/home-assistant/core/issues/90265 thread worked fine.

BUT

When i see new verison 2023.5.3 HA included this fix i delete esphome dir from custom component dir and update HA. This was 14 may. Today is 16 may, i tested many scenario, and i have to say that something is wrong. Something another than before.

Now problem is, that connection not go via bt-proxy and this make another delay. I not made any change in my config, only one change was: delete esphome folder from custom component and update HA to 2023.5.3. When connection is via bt-proxy all is ok and without delay. But i dont know why, not every connection going via bt-proxy. Before update to 2023.5.3 everyome lock connection go via bt-proxy

what to do?

Below logs when connection go via proxy and NOT (via app: tap unlock and when unlocked tap lock and lock locked)

What version of Home Assistant Core has the issue?

2023.5.3

What was the last working version of Home Assistant Core?

2023.5.2 with custom fix and earlier

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ESPHome

Link to integration documentation on our website

https://www.home-assistant.io/integrations/esphome

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

HERE below log when connection goes via bt=proxy and all working ok

2023-05-16 18:07:46.336 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 570000000f210381
2023-05-16 18:07:46.336 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Connecting; RSSI: -79
2023-05-16 18:07:46.336 DEBUG (MainThread) [bleak_retry_connector]  (LOCKMACADDR) - LOCKMACADDR: Connection attempt: 1
2023-05-16 18:07:46.684 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Connected; RSSI: -79
2023-05-16 18:07:46.684 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Starting notify and disconnect timer; RSSI: -79
2023-05-16 18:07:46.685 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Subscribe to notifications; RSSI: -79
2023-05-16 18:07:46.726 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Sending command: 570000000f210381
2023-05-16 18:07:46.850 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Notification received: 010000007dc0bc8cdf3f6be57f426f0a88c23050
2023-05-16 18:07:46.851 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Scheduling command 57817dc0f7349d19fac6837e
2023-05-16 18:07:46.851 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 18:07:46.851 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Sending command: 57817dc0f7349d19fac6837e
2023-05-16 18:07:46.992 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Received unsolicited notification: bytearray(b'\x0f\x81}\xc0{<\x12\x93m\xc6\x02\x7f?\xb0E=\xc3\xb0')
2023-05-16 18:07:46.993 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Notification received: 01817dc0
2023-05-16 18:07:46.994 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Scheduling command 57817dc0f67b9c06ea46
2023-05-16 18:07:46.994 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 18:07:46.994 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Sending command: 57817dc0f67b9c06ea46
2023-05-16 18:07:47.163 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817dc04ba00990fa
2023-05-16 18:07:47.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817dc0fb
2023-05-16 18:07:47.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 18:07:47.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817dc0fb
2023-05-16 18:07:47.254 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:07:47.348 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817dc09b749907fac6
2023-05-16 18:07:47.350 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:07:47.562 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOCKMACADDR): Fire callbacks
2023-05-16 18:07:47.591 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5efb30820
2023-05-16 18:07:47.592 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 18:07:53.317 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:07:54.888 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817dc0f67b9c06eac6
2023-05-16 18:07:54.889 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 18:07:54.889 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817dc0f67b9c06eac6
2023-05-16 18:07:55.028 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817dc059a80990fa
2023-05-16 18:07:55.029 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817dc0fb
2023-05-16 18:07:55.029 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 18:07:55.030 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817dc0fb
2023-05-16 18:07:55.078 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:07:55.138 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817dc09b749907fac6
2023-05-16 18:07:55.139 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:08:00.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 18:08:01.787 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5f2830820
2023-05-16 18:08:01.787 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 18:08:08.666 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing timed disconnect after timeout of 8.5
2023-05-16 18:08:08.666 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing disconnect
2023-05-16 18:08:08.667 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing disconnect with lock
2023-05-16 18:08:08.667 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnecting
2023-05-16 18:08:08.758 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 18:08:08.760 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnect completed successfully

AND HERE below log when connection NOT goes via bt=proxy and all NOT working ok. BIG DELAY, but finally lock unlock and lock

2023-05-16 17:52:40.318 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 570000000f210381
2023-05-16 17:52:40.319 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Connecting; RSSI: -79
2023-05-16 17:52:40.319 DEBUG (MainThread) [bleak_retry_connector]  (LOCKMACADDR) - LOCKMACADDR: Connection attempt: 1
2023-05-16 17:52:40.742 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 17:52:46.404 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 17:52:52.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Connected; RSSI: -79
2023-05-16 17:52:52.167 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Starting notify and disconnect timer; RSSI: -79
2023-05-16 17:52:52.167 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Subscribe to notifications; RSSI: -79
2023-05-16 17:52:52.661 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 570000000f210381
2023-05-16 17:52:52.760 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 010000007cd70c72c1e596bbb70fe0bc0b8709b7
2023-05-16 17:52:52.761 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817cd79796c03693e48941
2023-05-16 17:52:52.762 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 17:52:52.762 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817cd79796c03693e48941
2023-05-16 17:52:52.860 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817cd7
2023-05-16 17:52:52.861 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817cd796d9c1298364
2023-05-16 17:52:52.861 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 17:52:52.862 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817cd796d9c1298364
2023-05-16 17:52:53.060 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817cd72b0254bf93
2023-05-16 17:52:53.062 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817cd79b
2023-05-16 17:52:53.063 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 17:52:53.063 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817cd79b
2023-05-16 17:52:53.111 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:52:53.160 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817cd7fbd6c42893e4
2023-05-16 17:52:53.162 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:52:54.419 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5ebb30820
2023-05-16 17:52:54.419 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 17:52:58.261 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:52:59.012 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817cd796d9c12983e4
2023-05-16 17:52:59.012 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 17:52:59.012 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817cd796d9c12983e4
2023-05-16 17:52:59.160 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817cd7390a54bf93
2023-05-16 17:52:59.162 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Scheduling command 57817cd79b
2023-05-16 17:52:59.162 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Already connected before obtaining lock, resetting timer; RSSI: -79
2023-05-16 17:52:59.162 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Sending command: 57817cd79b
2023-05-16 17:52:59.163 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:52:59.260 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Notification received: 01817cd7fbd6c42893e4
2023-05-16 17:52:59.261 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:53:02.103 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5eda30820
2023-05-16 17:53:02.103 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 17:53:03.961 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Fire callbacks
2023-05-16 17:53:07.219 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5ee830820
2023-05-16 17:53:07.219 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 17:53:12.462 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing timed disconnect after timeout of 8.5
2023-05-16 17:53:12.462 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing disconnect
2023-05-16 17:53:12.462 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Executing disconnect with lock
2023-05-16 17:53:12.462 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnecting
2023-05-16 17:53:14.912 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 17:53:14.913 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnect completed successfully

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @ottowinter, @jesserockz, mind taking a look at this issue as it has been labeled with an integration (esphome) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `esphome` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign esphome` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


esphome documentation esphome source (message by IssueLinks)

bdraco commented 1 year ago

If its slow when NOT using the proxy but fast when using the proxy, its a problem with the local adapter.

Which bluetooth adapter are you using?

home-assistant[bot] commented 1 year ago

bluetooth documentation bluetooth source

home-assistant[bot] commented 1 year ago

Hey there @danielhiversen, @renierm26, @murtas, @eloston, @dsypniewski, mind taking a look at this issue as it has been labeled with an integration (switchbot) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `switchbot` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign switchbot` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


switchbot documentation switchbot source (message by IssueLinks)

KitHubek commented 1 year ago

now iam using UGREEN CM109 (CSR8510A10)

bdraco commented 1 year ago
2023-05-16 17:52:40.319 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Connecting; RSSI: -79
2023-05-16 17:52:40.319 DEBUG (MainThread) [bleak_retry_connector]  (LOCKMACADDR) - LOCKMACADDR: Connection attempt: 1
2023-05-16 17:52:40.742 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 17:52:46.404 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Disconnected from device; RSSI: -79
2023-05-16 17:52:52.166 DEBUG (MainThread) [switchbot.devices.device]  (LOCKMACADDR): Connected; RSSI: -79

It looks like the connection get dropped almost right away.

We will probably need the bleak logger for this one to figure out why.

KitHubek commented 1 year ago

ok, i will turn on logging debug level for bleak and as soon as i get proper logs i will write here, thanks

KitHubek commented 1 year ago

below LOG

2023-05-16 22:32:57.559 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Scheduling command 570000000f210381
2023-05-16 22:32:57.560 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Connecting; RSSI: -65
2023-05-16 22:32:57.560 DEBUG (MainThread) [bleak_retry_connector] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R) - LO:CK:MA:CA:DD:R: Connection attempt: 1
2023-05-16 22:32:57.566 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ LO:CK:MA:CA:DD:R
2023-05-16 22:32:57.592 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:32:57.656 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -66)>}, []]
2023-05-16 22:32:57.762 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:32:58.050 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
2023-05-16 22:32:58.062 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:32:58.063 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:32:58.063 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:32:58.063 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Disconnected from device; RSSI: -65
2023-05-16 22:32:58.069 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:33:03.807 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -61)>}, []]
2023-05-16 22:33:03.916 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:04.206 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
2023-05-16 22:33:04.210 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:33:04.211 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:04.211 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:04.211 DEBUG (MainThread) [switchbot.devices.device]  (LO:CK:MA:CA:DD:R): Disconnected from device; RSSI: -65
2023-05-16 22:33:04.217 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:33:09.808 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -60)>}, []]
2023-05-16 22:33:09.915 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:10.205 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
2023-05-16 22:33:10.213 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:33:10.214 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:10.214 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:10.214 DEBUG (MainThread) [switchbot.devices.device]  (LO:CK:MA:CA:DD:R): Disconnected from device; RSSI: -65
2023-05-16 22:33:10.221 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:33:15.805 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -61)>}, []]
2023-05-16 22:33:15.925 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:16.214 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
2023-05-16 22:33:16.219 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:33:16.220 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:16.220 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:16.220 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Disconnected from device; RSSI: -65
2023-05-16 22:33:16.225 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:33:17.593 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:17.593 DEBUG (MainThread) [bleak_retry_connector] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R) - LO:CK:MA:CA:DD:R: Timed out trying to connect (attempt: 1, last rssi: None)
2023-05-16 22:33:17.594 DEBUG (MainThread) [bleak_retry_connector.bluez] LO-CK-MA-CA-DD-RE-SS - LO:CK:MA:CA:DD:R: Waited 0.00020443899848032743 seconds to disconnect
2023-05-16 22:33:17.845 DEBUG (MainThread) [bleak_retry_connector] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R) - LO:CK:MA:CA:DD:R: Connection attempt: 2
2023-05-16 22:33:17.845 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ LO:CK:MA:CA:DD:R
2023-05-16 22:33:17.849 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS
2023-05-16 22:33:18.738 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_6C_7D_5D_A0_D6_A1', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:19.743 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_A4_C1_38_00_BE_28', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:19.747 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_A4_C1_38_FB_B5_2A', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:20.505 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Scheduling command 570000000f210381
2023-05-16 22:33:20.505 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Operation already in progress, waiting for it to complete; RSSI: -65
2023-05-16 22:33:20.742 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_A4_C1_38_AC_72_88', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:20.747 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_A4_C1_38_20_F2_36', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:21.783 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -59)>}, []]
2023-05-16 22:33:21.898 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:22.617 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000a', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': <dbus_fast.signature.Variant ('s', 00001801-0000-1000-8000-00805f9b34fb)>, 'Device': <dbus_fast.signature.Variant ('o', /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)>, 'Primary': <dbus_fast.signature.Variant ('b', True)>, 'Includes': <dbus_fast.signature.Variant ('ao', [])>}, 'org.freedesktop.DBus.Properties': {}}]
2023-05-16 22:33:22.617 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattService1': {'UUID': <dbus_fast.signature.Variant ('s', cba20d00-224d-11e6-9fb8-0002a5d5c51b)>, 'Device': <dbus_fast.signature.Variant ('o', /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)>, 'Primary': <dbus_fast.signature.Variant ('b', True)>, 'Includes': <dbus_fast.signature.Variant ('ao', [])>}, 'org.freedesktop.DBus.Properties': {}}]
2023-05-16 22:33:22.618 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': <dbus_fast.signature.Variant ('s', cba20002-224d-11e6-9fb8-0002a5d5c51b)>, 'Service': <dbus_fast.signature.Variant ('o', /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b)>, 'Value': <dbus_fast.signature.Variant ('ay', bytearray(b''))>, 'Flags': <dbus_fast.signature.Variant ('as', ['write-without-response', 'write'])>, 'WriteAcquired': <dbus_fast.signature.Variant ('b', False)>, 'MTU': <dbus_fast.signature.Variant ('q', 247)>}, 'org.freedesktop.DBus.Properties': {}}]
2023-05-16 22:33:22.618 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattCharacteristic1': {'UUID': <dbus_fast.signature.Variant ('s', cba20003-224d-11e6-9fb8-0002a5d5c51b)>, 'Service': <dbus_fast.signature.Variant ('o', /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b)>, 'Value': <dbus_fast.signature.Variant ('ay', bytearray(b''))>, 'Notifying': <dbus_fast.signature.Variant ('b', False)>, 'Flags': <dbus_fast.signature.Variant ('as', ['notify'])>, 'NotifyAcquired': <dbus_fast.signature.Variant ('b', False)>, 'MTU': <dbus_fast.signature.Variant ('q', 247)>}, 'org.freedesktop.DBus.Properties': {}}]
2023-05-16 22:33:22.618 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded (/): ['/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e/desc0010', {'org.freedesktop.DBus.Introspectable': {}, 'org.bluez.GattDescriptor1': {'UUID': <dbus_fast.signature.Variant ('s', 00002902-0000-1000-8000-00805f9b34fb)>, 'Characteristic': <dbus_fast.signature.Variant ('o', /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e)>, 'Value': <dbus_fast.signature.Variant ('ay', bytearray(b''))>}, 'org.freedesktop.DBus.Properties': {}}]
2023-05-16 22:33:22.618 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'UUIDs': <dbus_fast.signature.Variant ('as', ['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', 'cba20d00-224d-11e6-9fb8-0002a5d5c51b'])>, 'ServicesResolved': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:22.623 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Connected; RSSI: -65
2023-05-16 22:33:22.624 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Starting notify and disconnect timer; RSSI: -65
2023-05-16 22:33:22.624 DEBUG (MainThread) [switchbot.devices.device] LO-CK-MA-CA-DD-RE-SS (LO:CK:MA:CA:DD:R): Subscribe to notifications; RSSI: -65
2023-05-16 22:33:22.709 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Name': <dbus_fast.signature.Variant ('s', WoLock)>, 'Alias': <dbus_fast.signature.Variant ('s', WoLock)>}, []]
2023-05-16 22:33:22.737 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_76_06_1C_89_5B_A5', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:22.904 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Notifying': <dbus_fast.signature.Variant ('b', True)>}, []]
2023-05-16 22:33:22.905 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 570000000f210381
2023-05-16 22:33:22.907 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x00\x00\x00\x0f!\x03\x81')
2023-05-16 22:33:23.004 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x00\x00\x00\xb5\x84Mt0\xeeq\xf77\x1b\xfa\x8fo\x02o-'))>}, []]
2023-05-16 22:33:23.005 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 01000000b5844d7430ee71f7371bfa8f6f026f2d
2023-05-16 22:33:23.006 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584f29279ae6c4676d1
2023-05-16 22:33:23.007 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.007 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 570000000f210381
2023-05-16 22:33:23.010 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x00\x00\x00\x0f!\x03\x81')
2023-05-16 22:33:23.154 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x00\x00\x00\xb5\x84Mt0\xeeq\xf77\x1b\xfa\x8fo\x02o-'))>}, []]
2023-05-16 22:33:23.154 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 01000000b5844d7430ee71f7371bfa8f6f026f2d
2023-05-16 22:33:23.156 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584f29279ae6c4676d1
2023-05-16 22:33:23.157 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.157 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584f29279ae6c4676d1
2023-05-16 22:33:23.159 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xf2\x92y\xaelFv\xd1')
2023-05-16 22:33:23.253 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x81\xb5\x84'))>}, []]
2023-05-16 22:33:23.254 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b584
2023-05-16 22:33:23.256 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584f3dd78b17cc6
2023-05-16 22:33:23.257 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x96\xf6$\xfbF\xf7\xd0\x12\xc5\xe47\xa7\xc3'))>}, []]
2023-05-16 22:33:23.258 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.258 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584f29279ae6c4676d1
2023-05-16 22:33:23.260 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xf2\x92y\xaelFv\xd1')
2023-05-16 22:33:23.404 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x81\xb5\x84'))>}, []]
2023-05-16 22:33:23.404 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b584
2023-05-16 22:33:23.405 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584f3dd78b17cc6
2023-05-16 22:33:23.405 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.406 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584f3dd78b17cc6
2023-05-16 22:33:23.408 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xf3\xddx\xb1|\xc6')
2023-05-16 22:33:23.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x96\xf6$\xfbF\xf7\xd0\x12\xc5\xe47\xa7\xc3'))>}, []]
2023-05-16 22:33:23.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b"\x01\x81\xb5\x84N\x06\xed\'l"))>}, []]
2023-05-16 22:33:23.555 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5844e06ed276c
2023-05-16 22:33:23.558 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584fe
2023-05-16 22:33:23.558 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.558 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584f3dd78b17cc6
2023-05-16 22:33:23.560 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xf3\xddx\xb1|\xc6')
2023-05-16 22:33:23.704 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b"\x01\x81\xb5\x84N\x06\xed\'l"))>}, []]
2023-05-16 22:33:23.704 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5844e06ed276c
2023-05-16 22:33:23.706 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584fe
2023-05-16 22:33:23.706 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.706 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584fe
2023-05-16 22:33:23.708 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xfe')
2023-05-16 22:33:23.742 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci1/dev_A4_C1_38_F1_D6_A2', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
2023-05-16 22:33:23.856 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x81\xb5\x84\x9e\xd2}\xb0lF'))>}, []]
2023-05-16 22:33:23.856 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84L\x9a\xf6$\xfbF\xf7\xd0\x12\xc5\xe47Q\xc3'))>}, []]
2023-05-16 22:33:23.857 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:23.859 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5849ed27db06c46
2023-05-16 22:33:23.860 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:23.865 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:23.865 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584fe
2023-05-16 22:33:23.878 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xfe')
2023-05-16 22:33:23.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x81\xb5\x84\x9e\xd2}\xb0lF'))>}, []]
2023-05-16 22:33:23.954 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5849ed27db06c46
2023-05-16 22:33:23.955 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:26.854 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84N\x9aj$\xfbF\xf7\xd0\x12\xc5\xe4w\xc1\xc2'))>}, []]
2023-05-16 22:33:27.204 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84L\x9aj$\xfbF\xf7\xd0\x12\xc5\xe4w\x90\xc2'))>}, []]
2023-05-16 22:33:27.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84L\x9a\xd7$\xfbF\xf7\xd0\x12\xc5\xe47\xca\xc5'))>}, []]
2023-05-16 22:33:27.805 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84N\x9a\xd7$\xfbF\xf7\xd0\x12\xc5\xe47\x8c\xc5'))>}, []]
2023-05-16 22:33:28.054 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84L\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\xa8\xc5'))>}, []]
2023-05-16 22:33:28.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x83\xc5'))>}, []]
2023-05-16 22:33:28.355 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:28.654 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x83\xc5'))>}, []]
2023-05-16 22:33:28.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x83\xc5'))>}, []]
2023-05-16 22:33:29.254 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:29.604 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:29.854 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x83\xc5'))>}, []]
2023-05-16 22:33:30.204 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:30.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x83\xc5'))>}, []]
2023-05-16 22:33:30.754 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:31.054 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:31.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:31.606 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584f3dd78b17c46
2023-05-16 22:33:31.606 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:31.606 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584f3dd78b17c46
2023-05-16 22:33:31.608 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xf3\xddx\xb1|F')
2023-05-16 22:33:31.654 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84n\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\x80\xc5'))>}, []]
2023-05-16 22:33:31.704 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b"\x01\x81\xb5\x84\\\x0e\xed\'l"))>}, []]
2023-05-16 22:33:31.705 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5845c0eed276c
2023-05-16 22:33:31.707 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Scheduling command 5781b584fe
2023-05-16 22:33:31.707 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Already connected before obtaining lock, resetting timer; RSSI: -65
2023-05-16 22:33:31.707 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Sending command: 5781b584fe
2023-05-16 22:33:31.710 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000c: bytearray(b'W\x81\xb5\x84\xfe')
2023-05-16 22:33:31.804 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x01\x81\xb5\x84\x9e\xd2}\xb0lF'))>}, []]
2023-05-16 22:33:31.805 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Notification received: 0181b5849ed27db06c46
2023-05-16 22:33:31.807 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:31.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84\\\x9a\xee$\xfbF\xf7\xd0\x12\xc5\xe47\xb6\xc5'))>}, []]
2023-05-16 22:33:31.956 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:32.254 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\xd6$\xfbF\xf7\xd0\x12\xc5\xe47\xc8\xc5'))>}, []]
2023-05-16 22:33:32.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\xd6$\xfbF\xf7\xd0\x12\xc5\xe4w\x90\xc2'))>}, []]
2023-05-16 22:33:32.854 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9am$\xfbF\xf7\xd0\x12\xc5\xe4w\xc7\xc2'))>}, []]
2023-05-16 22:33:33.204 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9am$\xfbF\xf7\xd0\x12\xc5\xe47>\xc2'))>}, []]
2023-05-16 22:33:33.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9aT$\xfbF\xf7\xd0\x12\xc5\xe47o\xc2'))>}, []]
2023-05-16 22:33:33.754 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9aT$\xfbF\xf7\xd0\x12\xc5\xe47^\xc2'))>}, []]
2023-05-16 22:33:34.060 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a<$\xfbF\xf7\xd0\x12\xc5\xe47\x8f\xc2'))>}, []]
2023-05-16 22:33:34.353 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a<$\xfbF\xf7\xd0\x12\xc5\xe47\xc0\xc2'))>}, []]
2023-05-16 22:33:34.653 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b"\x0f\x81\xb5\x84^\x9a\'$\xfbF\xf7\xd0\x12\xc5\xe4w\x85\xc3"))>}, []]
2023-05-16 22:33:34.955 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b"\x0f\x81\xb5\x84^\x9a\'$\xfbF\xf7\xd0\x12\xc5\xe4w\xfa\xc3"))>}, []]
2023-05-16 22:33:35.304 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\x01$\xfbF\xf7\xd0\x12\xc5\xe473\xc3'))>}, []]
2023-05-16 22:33:35.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\x01$\xfbF\xf7\xd0\x12\xc5\xe47c\xc3'))>}, []]
2023-05-16 22:33:35.854 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47M\xc3'))>}, []]
2023-05-16 22:33:36.154 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84^\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:36.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:36.455 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Fire callbacks
2023-05-16 22:33:36.754 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:37.054 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:37.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:37.704 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:37.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:38.256 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa7\xc3'))>}, []]
2023-05-16 22:33:38.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:38.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:39.156 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:39.315 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Error fetching Oczyszczacz łazienka data: Unable to discover the device 192.168.10.91
2023-05-16 22:33:39.455 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:39.760 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:40.104 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:40.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:40.654 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:40.954 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:41.254 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:41.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:41.854 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:42.204 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:42.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:42.754 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:43.058 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:43.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:43.654 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:43.956 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:44.254 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:44.554 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:44.861 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:44.957 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Executing timed disconnect after timeout of 8.5
2023-05-16 22:33:44.957 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Executing disconnect
2023-05-16 22:33:44.957 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Executing disconnect with lock
2023-05-16 22:33:44.958 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Disconnecting
2023-05-16 22:33:44.958 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Disconnecting (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:45.154 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:45.454 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:45.754 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:46.104 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:46.354 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:46.661 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS/service000b/char000e): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', bytearray(b'\x0f\x81\xb5\x84~\x9a\xe9$\xfbF\xf7\xd0\x12\xc5\xe47\xa4\xc3'))>}, []]
2023-05-16 22:33:46.755 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'ServicesResolved': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:33:46.756 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'Connected': <dbus_fast.signature.Variant ('b', False)>}, []]
2023-05-16 22:33:46.756 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:46.756 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS)
2023-05-16 22:33:46.757 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Disconnected from device; RSSI: -65
2023-05-16 22:33:46.757 DEBUG (MainThread) [switchbot.devices.device] WoLock (LO:CK:MA:CA:DD:R): Disconnect completed successfully
2023-05-16 22:33:51.888 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_A4_C1_38_89_B6_F7): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -86)>}, []]
2023-05-16 22:33:51.918 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci1/dev_LO_CK_MA_CA_DD_RE_SS): ['org.bluez.Device1', {'RSSI': <dbus_fast.signature.Variant ('n', -62)>, 'ManufacturerData': <dbus_fast.signature.Variant ('a{qv}', {2409: <dbus_fast.signature.Variant ('ay', bytearray(b'\xc1\x89DK+\xa5\x04\x83\x08 '))>})>}, []]
2023-05-16 22:33:51.919 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba504830820
2023-05-16 22:33:51.919 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
bdraco commented 1 year ago

2023-05-16 22:33:10.205 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local

That looks like either the buggy firmware on the RTL8761BU (anything older than 0xDFC6_D922 is pretty broken from my experience or an interference problem.

Which adapter are you using?

KitHubek commented 1 year ago

as i wrote posts before

now iam using UGREEN CM109 (CSR8510A10)

this adapter has CSR chip not RTL :/

I dont think so, that this is interference, because:

  1. i made about ten tests, used 3 mobile devices and 1 PC and result all time the same,
  2. moments ago i back to 2023.5.2, install Yours patch (esphome in custom_component dir) and................... all working ok without problerms, below logs
[23:39:07][I][bluetooth_proxy:254]: [0] [C1:89:44:4B:2B:A5] Connecting v3 without cache
[23:39:07][D][esp32_ble_tracker:214]: Pausing scan to make connection...
[23:39:07][I][esp32_ble_client:064]: [0] [C1:89:44:4B:2B:A5] 0x01 Attempting BLE connection
[23:39:07][I][esp32_ble_client:196]: [0] [C1:89:44:4B:2B:A5] Connected
[23:39:07][D][esp32_ble_tracker:246]: Starting scan...
[23:39:27][I][esp32_ble_client:081]: [0] [C1:89:44:4B:2B:A5] Disconnecting.
[23:39:27][D][esp-idf:000]: W (434033) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[23:39:27][D][esp-idf:000]: W (434037) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[23:39:27][D][esp-idf:000]: W (434039) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[23:39:27][D][esp-idf:000]: W (434040) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[23:39:27][D][esp-idf:000]: W (434090) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[23:44:07][D][esp32_ble_tracker:246]: Starting scan...
2023-05-16 23:39:06.868 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Scheduling command 570000000f210381
2023-05-16 23:39:06.868 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Connecting; RSSI: -61
2023-05-16 23:39:06.868 DEBUG (MainThread) [bleak_retry_connector]  (C1:89:44:4B:2B:A5) - C1:89:44:4B:2B:A5: Connection attempt: 1
2023-05-16 23:39:07.372 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Connected; RSSI: -61
2023-05-16 23:39:07.372 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Starting notify and disconnect timer; RSSI: -61
2023-05-16 23:39:07.372 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Subscribe to notifications; RSSI: -61
2023-05-16 23:39:07.448 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Sending command: 570000000f210381
2023-05-16 23:39:07.665 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Notification received: 01000000c0acd620a2fdf291402110970684aa10
2023-05-16 23:39:07.666 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Scheduling command 5781c0ac327c6aa07c93eaa8
2023-05-16 23:39:07.666 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Already connected before obtaining lock, resetting timer; RSSI: -61
2023-05-16 23:39:07.666 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Sending command: 5781c0ac327c6aa07c93eaa8
2023-05-16 23:39:07.760 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Received unsolicited notification: bytearray(b'\x0f\x81\xc0\xac\xbet\xff*\xeb\x93k\xa9\x9e\xb5\xf8\x11\xd5\xe5')
2023-05-16 23:39:07.760 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Notification received: 0181c0ac
2023-05-16 23:39:07.762 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Scheduling command 5781c0ac33336bbf6c13
2023-05-16 23:39:07.762 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Already connected before obtaining lock, resetting timer; RSSI: -61
2023-05-16 23:39:07.762 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Sending command: 5781c0ac33336bbf6c13
2023-05-16 23:39:07.863 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Notification received: 0181c0ac8ee8fe297c
2023-05-16 23:39:07.865 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Scheduling command 5781c0ac3e
2023-05-16 23:39:07.865 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Already connected before obtaining lock, resetting timer; RSSI: -61
2023-05-16 23:39:07.865 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Sending command: 5781c0ac3e
2023-05-16 23:39:07.927 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba514b30820
2023-05-16 23:39:07.927 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 23:39:07.965 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Notification received: 0181c0ac5e3c6ebe7c93
2023-05-16 23:39:07.967 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:89:44:4B:2B:A5): Fire callbacks
2023-05-16 23:39:12.874 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Fire callbacks
2023-05-16 23:39:14.447 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Scheduling command 5781c0ac33336bbf6c93
2023-05-16 23:39:14.447 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Already connected before obtaining lock, resetting timer; RSSI: -61
2023-05-16 23:39:14.447 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Sending command: 5781c0ac33336bbf6c93
2023-05-16 23:39:14.518 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Notification received: 0181c0ac9ce1fe297c
2023-05-16 23:39:14.519 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Scheduling command 5781c0ac3e
2023-05-16 23:39:14.519 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Already connected before obtaining lock, resetting timer; RSSI: -61
2023-05-16 23:39:14.519 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Sending command: 5781c0ac3e
2023-05-16 23:39:14.628 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Notification received: 0181c0ac5e3c6ebe7c93
2023-05-16 23:39:14.629 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Fire callbacks
2023-05-16 23:39:14.727 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Fire callbacks
2023-05-16 23:39:19.177 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Fire callbacks
2023-05-16 23:39:23.970 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba517830820
2023-05-16 23:39:23.971 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-16 23:39:27.678 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Executing timed disconnect after timeout of 8.5
2023-05-16 23:39:27.678 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Executing disconnect
2023-05-16 23:39:27.678 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Executing disconnect with lock
2023-05-16 23:39:27.679 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Disconnecting
2023-05-16 23:39:27.768 DEBUG (MainThread) [switchbot.devices.device]  (C1:89:44:4B:2B:A5): Disconnect completed successfully
bdraco commented 1 year ago

now iam using UGREEN CM109 (CSR8510A10)

this adapter has CSR chip not RTL :/

Sorry about that, thats a known good adapter -- jumping between this and another issue and trying to not mix them up 👍

I think at this point we need a btmon dump to see what is going on lower in the bluetooth stack.

https://github.com/bluez/bluez/wiki/btmon#capture-the-traces-from-hci0-to-hcidumplog-file

KitHubek commented 1 year ago

@bdraco ok how to use it on HA , because i get error:

btmon: command not found

KitHubek commented 1 year ago

I do some update. I placed bt dongle about 2m near lock, clean area, no walls, nothing. BT signal: about -40rssi - -50rssi. One bt proxy

Update HA to newest esphome update too

today log:

2023-05-23 22:18:43.286 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-23 22:18:43.286 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Connecting; RSSI: -71
2023-05-23 22:18:43.287 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 1
2023-05-23 22:18:43.917 WARNING (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Device unexpectedly disconnected; RSSI: -71
2023-05-23 22:18:49.374 WARNING (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Device unexpectedly disconnected; RSSI: -71
2023-05-23 22:18:55.389 WARNING (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Device unexpectedly disconnected; RSSI: -71
2023-05-23 22:18:57.748 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-23 22:18:57.749 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Operation already in progress, waiting for it to complete; RSSI: -71
2023-05-23 22:19:01.399 WARNING (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Device unexpectedly disconnected; RSSI: -71
2023-05-23 22:19:03.290 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Timed out trying to connect (attempt: 1, last rssi: None)
2023-05-23 22:19:03.290 DEBUG (MainThread) [bleak_retry_connector.bluez] WoLock - LOC:KMA:CAD:DRE:SS: Waited 0.00013496099927579053 seconds to disconnect
2023-05-23 22:19:03.542 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 2
2023-05-23 22:19:04.144 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Failed to connect: Error ESP_GATT_CONN_FAIL_ESTABLISH while connecting: Connection failed to establish, backing off: 0.9 (attempt: 2, last rssi: None)
2023-05-23 22:19:04.145 DEBUG (MainThread) [bleak_retry_connector.bluez] WoLock - LOC:KMA:CAD:DRE:SS: Waited 0.0001564779995533172 seconds to disconnect
2023-05-23 22:19:05.045 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 3
2023-05-23 22:19:05.385 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Connected; RSSI: -71
2023-05-23 22:19:05.385 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Starting notify and disconnect timer; RSSI: -71
2023-05-23 22:19:05.385 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Subscribe to notifications; RSSI: -71
2023-05-23 22:19:05.471 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-23 22:19:05.679 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01000000dbeb816f74b8a898ac639a406be7eaf2
2023-05-23 22:19:05.681 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebddcdad753d5844a8
2023-05-23 22:19:05.681 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:05.681 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-23 22:19:05.815 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01000000dbeb816f74b8a898ac639a406be7eaf2
2023-05-23 22:19:05.816 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebddcdad753d5844a8
2023-05-23 22:19:05.816 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:05.816 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebddcdad753d5844a8
2023-05-23 22:19:05.988 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Received unsolicited notification: bytearray(b'\x0f\x81\xdb\xebQ\xc9;\xff\xaaX\xc5\xa9\xf5\xfe-\xf3+\xeb')
2023-05-23 22:19:05.988 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbeb
2023-05-23 22:19:05.989 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebdc82ac6a2dd8
2023-05-23 22:19:05.989 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:05.989 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebddcdad753d5844a8
2023-05-23 22:19:06.202 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbeb
2023-05-23 22:19:06.203 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebdc82ac6a2dd8
2023-05-23 22:19:06.204 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:06.204 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebdc82ac6a2dd8
2023-05-23 22:19:06.304 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbeb615a39fc3d
2023-05-23 22:19:06.306 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebd1
2023-05-23 22:19:06.306 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:06.306 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebdc82ac6a2dd8
2023-05-23 22:19:06.415 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbeb615939fc3d
2023-05-23 22:19:06.423 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 5781dbebd1
2023-05-23 22:19:06.423 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:06.423 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebd1
2023-05-23 22:19:06.527 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbebb18da96b3d58
2023-05-23 22:19:06.527 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:06.529 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:06.531 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -71
2023-05-23 22:19:06.531 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 5781dbebd1
2023-05-23 22:19:06.614 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 0181dbebb18da96b3d58
2023-05-23 22:19:06.615 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:11.360 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:13.465 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:14.080 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba564970820
2023-05-23 22:19:14.081 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-23 22:19:18.586 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:20.063 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:24.935 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-23 22:19:30.057 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba567830420
2023-05-23 22:19:30.058 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-23 22:19:33.437 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing timed disconnect after timeout of 8.5
2023-05-23 22:19:33.437 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect
2023-05-23 22:19:33.437 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect with lock
2023-05-23 22:19:33.437 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnecting
2023-05-23 22:19:33.537 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -71
2023-05-23 22:19:33.538 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnect completed successfully

I noticed, that all logs contain always: RSSI: -71 this is no true. I never had rssi about 70 rssi

KitHubek commented 1 year ago

after update to newest ESPHome 2023.5.4 (problem still exsist)

2023-05-26 13:00:32.259 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-26 13:00:32.259 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Connecting; RSSI: -56
2023-05-26 13:00:32.259 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 1
2023-05-26 13:00:32.736 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 13:00:38.379 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 13:00:44.326 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 13:00:46.287 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-26 13:00:46.287 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Operation already in progress, waiting for it to complete; RSSI: -56
2023-05-26 13:00:50.407 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 13:00:52.262 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Timed out trying to connect (attempt: 1, last rssi: None)
2023-05-26 13:00:52.263 DEBUG (MainThread) [bleak_retry_connector.bluez] WoLock - LOC:KMA:CAD:DRE:SS: Waited 0.0001600929826963693 seconds to disconnect
2023-05-26 13:00:52.514 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 2
2023-05-26 13:00:56.394 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Connected; RSSI: -56
2023-05-26 13:00:56.394 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Starting notify and disconnect timer; RSSI: -56
2023-05-26 13:00:56.394 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Subscribe to notifications; RSSI: -56
2023-05-26 13:00:56.838 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-26 13:00:56.945 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 010000003ecad9feab9da13c9122bdfad4675e9a
2023-05-26 13:00:56.945 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca177a2343537b100f
2023-05-26 13:00:56.945 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:56.946 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-26 13:00:57.038 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 010000003ecad9feab9da13c9122bdfad4675e9a
2023-05-26 13:00:57.040 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca177a2343537b100f
2023-05-26 13:00:57.040 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.040 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca177a2343537b100f
2023-05-26 13:00:57.188 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Received unsolicited notification: bytearray(b'\x0f\x81>\xca\x9b~\xb6\xc9\xc4{\x91\x0e\x03w\x0f\xea\xc4\x87')
2023-05-26 13:00:57.188 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813eca
2023-05-26 13:00:57.189 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca1635225c43fb
2023-05-26 13:00:57.190 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.190 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca177a2343537b100f
2023-05-26 13:00:57.338 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813eca
2023-05-26 13:00:57.339 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca1635225c43fb
2023-05-26 13:00:57.339 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.340 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca1635225c43fb
2023-05-26 13:00:57.440 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813ecaabeeb7ca53
2023-05-26 13:00:57.441 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca1b
2023-05-26 13:00:57.442 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.442 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca1635225c43fb
2023-05-26 13:00:57.538 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813ecaabeeb7ca53
2023-05-26 13:00:57.540 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Scheduling command 57813eca1b
2023-05-26 13:00:57.540 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.540 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca1b
2023-05-26 13:00:57.638 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813eca7b3a275d537b
2023-05-26 13:00:57.638 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 13:00:57.640 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 13:00:57.640 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Sending command: 57813eca1b
2023-05-26 13:00:57.688 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 13:00:57.745 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Notification received: 01813eca7b3a275d537b
2023-05-26 13:00:57.745 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 13:01:02.538 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 13:01:04.338 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 13:01:05.262 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5e7970820
2023-05-26 13:01:05.262 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-26 13:01:12.838 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing timed disconnect after timeout of 8.5
2023-05-26 13:01:12.839 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect
2023-05-26 13:01:12.839 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect with lock
2023-05-26 13:01:12.839 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnecting
2023-05-26 13:01:14.939 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 13:01:14.941 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnect completed successfully
2023-05-26 12:55:24.897 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-26 12:55:24.897 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Connecting; RSSI: -56
2023-05-26 12:55:24.898 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 1
2023-05-26 12:55:25.335 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 12:55:31.400 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 12:55:33.961 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 570000000f210381
2023-05-26 12:55:33.962 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Operation already in progress, waiting for it to complete; RSSI: -56
2023-05-26 12:55:37.382 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 12:55:43.345 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 12:55:44.900 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Timed out trying to connect (attempt: 1, last rssi: None)
2023-05-26 12:55:44.901 DEBUG (MainThread) [bleak_retry_connector.bluez] WoLock - LOC:KMA:CAD:DRE:SS: Waited 0.0001410389959346503 seconds to disconnect
2023-05-26 12:55:45.152 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 2
2023-05-26 12:55:46.081 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Failed to connect: Error ESP_GATT_CONN_FAIL_ESTABLISH while connecting: Connection failed to establish, backing off: 0.9 (attempt: 2, last rssi: None)
2023-05-26 12:55:46.081 DEBUG (MainThread) [bleak_retry_connector.bluez] WoLock - LOC:KMA:CAD:DRE:SS: Waited 0.00014377202023752034 seconds to disconnect
2023-05-26 12:55:46.983 DEBUG (MainThread) [bleak_retry_connector] WoLock (LOC:KMA:CAD:DRE:SS) - LOC:KMA:CAD:DRE:SS: Connection attempt: 3
2023-05-26 12:55:47.272 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Connected; RSSI: -56
2023-05-26 12:55:47.272 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Starting notify and disconnect timer; RSSI: -56
2023-05-26 12:55:47.272 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Subscribe to notifications; RSSI: -56
2023-05-26 12:55:47.319 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-26 12:55:47.441 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 01000000416c45f28302a4c080355c803b13ed60
2023-05-26 12:55:47.443 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c70b4964a0654838d
2023-05-26 12:55:47.443 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:47.443 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 570000000f210381
2023-05-26 12:55:47.609 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 01000000416c45f28302a4c080355c803b13ed60
2023-05-26 12:55:47.611 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c70b4964a0654838d
2023-05-26 12:55:47.611 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:47.611 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c70b4964a0654838d
2023-05-26 12:55:47.742 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416c
2023-05-26 12:55:47.743 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c71fb975516d4
2023-05-26 12:55:47.743 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:47.743 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c70b4964a0654838d
2023-05-26 12:55:47.845 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416c
2023-05-26 12:55:47.847 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c71fb975516d4
2023-05-26 12:55:47.847 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:47.847 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c71fb975516d4
2023-05-26 12:55:47.948 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416ccc2002c306
2023-05-26 12:55:47.949 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c7c
2023-05-26 12:55:47.949 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:47.950 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c71fb975516d4
2023-05-26 12:55:48.033 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 12:55:48.109 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416ccc2002c306
2023-05-26 12:55:48.110 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Scheduling command 5781416c7c
2023-05-26 12:55:48.110 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:48.111 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c7c
2023-05-26 12:55:48.235 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416c1cf492540654
2023-05-26 12:55:48.236 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 12:55:48.237 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Already connected before obtaining lock, resetting timer; RSSI: -56
2023-05-26 12:55:48.237 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Sending command: 5781416c7c
2023-05-26 12:55:48.354 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Notification received: 0181416c1cf492540654
2023-05-26 12:55:48.355 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 12:55:48.923 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5d9b30820
2023-05-26 12:55:48.923 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-26 12:55:53.126 DEBUG (MainThread) [switchbot.devices.device] WoLock (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 12:55:53.783 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5da930820
2023-05-26 12:55:53.783 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-26 12:55:54.364 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Fire callbacks
2023-05-26 12:55:54.825 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5db970820
2023-05-26 12:55:54.825 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-26 12:56:02.866 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing timed disconnect after timeout of 8.5
2023-05-26 12:56:02.866 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect
2023-05-26 12:56:02.866 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Executing disconnect with lock
2023-05-26 12:56:02.866 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnecting
2023-05-26 12:56:02.956 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnected from device; RSSI: -56
2023-05-26 12:56:02.957 DEBUG (MainThread) [switchbot.devices.device]  (LOC:KMA:CAD:DRE:SS): Disconnect completed successfully
2023-05-26 12:56:20.775 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5dc930820
2023-05-26 12:56:20.776 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
2023-05-26 12:56:27.950 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c189444b2ba5de830420
2023-05-26 12:56:27.950 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f8062
bdraco commented 1 year ago

IMG_1553 IMG_1554

I bought the same hardware and going to give it a try on an HA blue now

bdraco commented 1 year ago

also using this for an extension cable

https://www.amazon.com/dp/B07RQRMGKB?ref=nb_sb_ss_w_as-reorder-t1_k1_1_6&amp=&crid=Z1GD707YVH4Z&amp=&sprefix=ainope

bdraco commented 1 year ago

lock setup and connected fine. config flow took a bit longer than expected but ok

bdraco commented 1 year ago

its pretty quick for me.

Here is my connection log with various debug loggers enabled


May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.114 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 570000000f21036f
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.114 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Connecting; RSSI: -39
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.115 DEBUG (MainThread) [bleak_retry_connector] WoLock (C1:64:B8:7D:06:05) - C1:64:B8:7D:06:05: Connection attempt: 1
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.115 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ C1:64:B8:7D:06:05
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.120 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.737 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.738 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.738 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.738 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Disconnected from device; RSSI: -39
May 29 17:45:38 homeassistant homeassistant[547]: 2023-05-29 12:45:38.741 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.265 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.281 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.281 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.282 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Disconnected from device; RSSI: -39
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.286 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.472 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] Using cached services for /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.473 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Connected; RSSI: -39
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.473 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Starting notify and disconnect timer; RSSI: -39
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.473 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Subscribe to notifications; RSSI: -39
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.919 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 570000000f21036f
May 29 17:45:39 homeassistant homeassistant[547]: 2023-05-29 12:45:39.921 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'W\x00\x00\x00\x0f!\x03o')
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.168 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 01000000ae8ea7617619ea7faaa72b6d0991af2f
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.169 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576fae8eaf6b6a689a28a381
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.170 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.170 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576fae8eaf6b6a689a28a381
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.171 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\xae\x8e\xafkjh\x9a(\xa3\x81')
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.318 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016fae8e
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.320 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576fae8eae246b778aa8
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.320 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.320 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576fae8eae246b778aa8
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.321 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\xae\x8e\xae$kw\x8a\xa8')
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.468 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016fae8e17e0e3599a
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.469 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576fae8ea3
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.470 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.470 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576fae8ea3
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.471 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\xae\x8e\xa3')
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.568 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016fae8ec540dc7e1228
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.569 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Fire callbacks
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.619 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Fire callbacks
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.866 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c164b87d06052cb708
May 29 17:45:40 homeassistant homeassistant[547]: 2023-05-29 12:45:40.866 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f0064
May 29 17:45:42 homeassistant homeassistant[547]: 2023-05-29 12:45:42.669 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Fire callbacks
May 29 17:45:43 homeassistant homeassistant[547]: 2023-05-29 12:45:43.143 DEBUG (MainThread) [switchbot.adv_parsers.lock] mfr_data: c164b87d06052d9700
May 29 17:45:43 homeassistant homeassistant[547]: 2023-05-29 12:45:43.143 DEBUG (MainThread) [switchbot.adv_parsers.lock] data: 6f0064
bdraco commented 1 year ago

Also I'm using this hardware for the HA system https://www.hardkernel.com/shop/odroid-n2-with-4gbyte-ram-2/

KitHubek commented 1 year ago

i dont know what to say, but as i wrote many times (and some other users too): lock working ok after reboot, manual open/close, some action on it. But, wait about 30min, 1h and more and then is problem - i had lag and have to wait for action. Lock i dont know, goes to sleep mode ? now i know that NO, but behavior is like this.

bdraco commented 1 year ago

I waited 25 minutes from the last attempt and result is the same, still quick to connect

May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.276 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to device @ D3:2C:5A:5B:53:13
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.282 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_D3_2C_5A_5B_53_13
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.949 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.950 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.951 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.951 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Disconnected from device; RSSI: -39
May 29 18:13:05 homeassistant homeassistant[547]: 2023-05-29 13:13:05.955 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 18:13:06 homeassistant homeassistant[547]: 2023-05-29 13:13:06.476 DEBUG (MainThread) [bleak.backends.bluezdbus.client] retry due to le-connection-abort-by-local
May 29 18:13:06 homeassistant homeassistant[547]: 2023-05-29 13:13:06.478 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Device disconnected (/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 18:13:06 homeassistant homeassistant[547]: 2023-05-29 13:13:06.478 DEBUG (MainThread) [bleak.backends.bluezdbus.client] _cleanup_all(/org/bluez/hci0/dev_C1_64_B8_7D_06_05)
May 29 18:13:06 homeassistant homeassistant[547]: 2023-05-29 13:13:06.478 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Disconnected from device; RSSI: -39
May 29 18:13:06 homeassistant homeassistant[547]: 2023-05-29 13:13:06.485 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Connecting to BlueZ path /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.072 DEBUG (MainThread) [bleak.backends.bluezdbus.manager] Using cached services for /org/bluez/hci0/dev_C1_64_B8_7D_06_05
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.073 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Connected; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.073 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Starting notify and disconnect timer; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.073 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Subscribe to notifications; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.567 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 570000000f21036f
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.568 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'W\x00\x00\x00\x0f!\x03o')
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.667 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 010000008f751f67f4bc4fc50c5a881a2cee77ec
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.668 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576f8f75fcc1b1231f6016b0
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.668 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.668 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576f8f75fcc1b1231f6016b0
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.670 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\x8fu\xfc\xc1\xb1#\x1f`\x16\xb0')
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.767 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Received unsolicited notification: bytearray(b'\x0fo\x8fuf\xc0\x9c\xb40`\x97\xb1\xadH')
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.768 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016f8f75
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.769 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576f8f75fd8eb03c0f60
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.769 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.769 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576f8f75fd8eb03c0f60
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.781 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\x8fu\xfd\x8e\xb0<\x0f`')
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.867 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016f8f7556ed38121f
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.868 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Scheduling command 576f8f75f0
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.868 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Already connected before obtaining lock, resetting timer; RSSI: -39
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.868 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Sending command: 576f8f75f0
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.870 DEBUG (MainThread) [bleak.backends.bluezdbus.client] Write Characteristic cba20002-224d-11e6-9fb8-0002a5d5c51b | /org/bluez/hci0/dev_C1_64_B8_7D_06_05/service000b/char000c: bytearray(b'Wo\x8fu\xf0')
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.967 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Notification received: 016f8f7596ea15353160
May 29 18:13:07 homeassistant homeassistant[547]: 2023-05-29 13:13:07.968 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Fire callbacks
May 29 18:13:08 homeassistant homeassistant[547]: 2023-05-29 13:13:08.018 DEBUG (MainThread) [switchbot.devices.device] WoLock (C1:64:B8:7D:06:05): Fire callbacks

I'll try again in an hour

bdraco commented 1 year ago

I think your Home Assistant install is overloaded unstable due to something blocking the event loop. Are you able to capture a callgrind profile and py-spy?

KitHubek commented 1 year ago

yes i can, but i dont know how to do it

KitHubek commented 1 year ago

wait, i done this, You asked for this there: https://github.com/home-assistant/core/issues/90281#issuecomment-1520394278

bdraco commented 1 year ago

I see the callgrind but I don't think you did a py-spy yet. It would be good to do another one anyways since the ones posted there are for old versions and aren't so useful once a new version is released as the code changes too much between versions to map the profile to the code

KitHubek commented 1 year ago

i get error when want run py-spy

pyspyerrr

bdraco commented 1 year ago

You need to attach to the pid of the python process running hass in the container

docker exec -it homeassistant /bin/bash ps uxaww|grep python

alexander-homeassistant:/config# ps uxaww|grep python
 5483 root     12:48 python3 -m homeassistant --config /config
alexander-homeassistant:/config# ./py_spy-0.3.14.data/scripts/py-spy record --pid 5483 --rate 400 --duration 60 --output /config/www/spy.svg
py-spy> Sampling process 400 times a second for 60 seconds. Press Control-C to exit.

^C
py-spy> Stopped sampling because Control-C pressed
py-spy> Wrote flamegraph data to '/config/www/spy.svg'. Samples: 32 Errors: 0
KitHubek commented 1 year ago
[core-ssh scripts]$ docker exec -it homeassistant /bin/bash
-bash: docker: command not found
[core-ssh scripts]$
KitHubek commented 1 year ago

ok i see my mistake. Iam using official addons ssh, now installed community and its works. Now enter command: ./py-spy top --pid 66

and i dont know what to do next. Nothing happens

pyspyworking

bdraco commented 1 year ago

Use my example above

./py_spy-0.3.14.data/scripts/py-spy record --pid 66 --rate 200 --duration 60 --output /config/spy.svg

KitHubek commented 1 year ago

ok i used command below, but after hit enter HA not respond at all and reboot automaticly

pyspy-ok0ok

bdraco commented 1 year ago

The host system reboots when you run py-spy?

KitHubek commented 1 year ago

yes

bdraco commented 1 year ago

I've never heard of that happening before. Normally that shouldn't be possible. Maybe there is a hardware problem?

KitHubek commented 1 year ago

i have new one dell 3050, new ram and new cpu, bought in April to replace rpi4

KitHubek commented 1 year ago

not hardware reboots, not host. Only Home Assistant reboots

KitHubek commented 1 year ago

look at this:

Adnotacja 2023-05-29 221507

KitHubek commented 1 year ago

maby 400 per second is too much?

bdraco commented 1 year ago

Try at 100 and see what the best you can get is.

My M2 laptop can do 1000, my synology box can do 400, and my RPI3b can do 100

KitHubek commented 1 year ago

ok will try and i dont know what happens, HA not respond and i think restartedd or only not repond. I dont know how to check if restarted or not. HOST not reboted

bdraco commented 1 year ago

If it’s overloaded and you cancel it it may leave the process suspended

you can tell it to continue with

kill -CONT 66

KitHubek commented 1 year ago

i ran:

./py_spy-0.3.14.data/scripts/py-spy record --pid 66 --rate 10 --duration 60 --output /config/spy.svg

and HA not respond too and now i am sure that HA restarted, host NOT no log file created

pyspyyhy

bdraco commented 1 year ago

It seems like you have an integration or a core change in recent versions that is making your system. You could try the dump command instead or record

KitHubek commented 1 year ago

now i tried with duration and rate 1 ONE and:

errerr

bdraco commented 1 year ago
# ./py_spy-0.3.14.data/scripts/py-spy dump --pid 5608
Process 5608: python3 -m homeassistant --config /config
Python v3.11.3 (/usr/local/bin/python3.11)

Thread 5608 (idle): "MainThread"
    select (selectors.py:468)
    _run_once (asyncio/base_events.py:1884)
    run_forever (asyncio/base_events.py:607)
    run_until_complete (asyncio/base_events.py:640)
    run (homeassistant/runner.py:179)
    main (homeassistant/__main__.py:214)
    <module> (homeassistant/__main__.py:226)
    _run_code (<frozen runpy>:88)
    _run_module_as_main (<frozen runpy>:198)
Thread 5614 (idle): "Thread-1 (_monitor)"
    dequeue (logging/handlers.py:1528)
    _monitor (logging/handlers.py:1579)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5616 (idle): "SyncWorker_0"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5622 (idle): "SyncWorker_1"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5624 (idle): "SyncWorker_2"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5625 (idle): "SyncWorker_3"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5626 (idle): "SyncWorker_4"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5628 (idle): "SyncWorker_5"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5629 (idle): "SyncWorker_6"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5630 (idle): "SyncWorker_7"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5631 (idle): "SyncWorker_8"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5632 (idle): "SyncWorker_9"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5633 (idle): "SyncWorker_10"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5634 (idle): "SyncWorker_11"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5635 (idle): "Recorder"
    _run_event_loop (homeassistant/components/recorder/core.py:865)
    _run (homeassistant/components/recorder/core.py:771)
    run (homeassistant/components/recorder/core.py:695)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5639 (idle): "Thread-2 (_thread_main)"
    _loop (paho/mqtt/client.py:1150)
    loop_forever (paho/mqtt/client.py:1756)
    _thread_main (paho/mqtt/client.py:3591)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5640 (idle): "Thread-3 (_thread_main)"
    _loop (paho/mqtt/client.py:1150)
    loop_forever (paho/mqtt/client.py:1756)
    _thread_main (paho/mqtt/client.py:3591)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5641 (idle): "Thread-4 (_thread_main)"
    _loop (paho/mqtt/client.py:1150)
    loop_forever (paho/mqtt/client.py:1756)
    _thread_main (paho/mqtt/client.py:3591)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5644 (idle): "DbWorker_0"
    _worker (concurrent/futures/thread.py:81)
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5645 (idle): "DbWorker_1"
    _worker (concurrent/futures/thread.py:81)
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5646 (idle): "DHCPWatcher"
    select (scapy/supersocket.py:264)
    _run (scapy/sendrecv.py:1219)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5652 (idle): "SyncWorker_12"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5653 (idle): "SyncWorker_13"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5654 (idle): "SyncWorker_14"
    _worker (concurrent/futures/thread.py:81)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5658 (idle): "DbWorker_2"
    _worker (concurrent/futures/thread.py:81)
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
Thread 5659 (idle): "DbWorker_3"
    _worker (concurrent/futures/thread.py:81)
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)
    run (threading.py:975)
    _bootstrap_inner (threading.py:1038)
    _bootstrap (threading.py:995)
KitHubek commented 1 year ago
homeassistant:/config# ./py_spy-0.3.14.data/scripts/py-spy dump --pid 66                                                                                                                                                                                              
Process 66: python3 -m homeassistant --config /config                                                                                                                                                                                                                 
Python v3.10.11 (/usr/local/bin/python3.10)                                                                                                                                                                                                                           

Thread 0x7F8A13D37AB0 (idle): "MainThread"                                                                                                                                                                                                                            
    select (selectors.py:469)                                                                                                                                                                                                                                         
    _run_once (asyncio/base_events.py:1871)                                                                                                                                                                                                                           
    run_forever (asyncio/base_events.py:603)                                                                                                                                                                                                                          
    run_until_complete (asyncio/base_events.py:636)                                                                                                                                                                                                                   
    run (homeassistant/runner.py:179)                                                                                                                                                                                                                                 
    main (homeassistant/__main__.py:214)                                                                                                                                                                                                                              
    <module> (homeassistant/__main__.py:226)                                                                                                                                                                                                                          
    _run_code (runpy.py:86)                                                                                                                                                                                                                                           
    _run_module_as_main (runpy.py:196)                           
Thread 0x7F8A0F7B6B30 (active): "Thread-1 (_monitor)"            
    dequeue (logging/handlers.py:1505)                           
    _monitor (logging/handlers.py:1556)                          
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0F1FFB30 (active): "SyncWorker_0"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0CFFFB30 (active): "SyncWorker_1"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0C9FFB30 (active): "SyncWorker_2"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0C3FFB30 (active): "SyncWorker_3"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0BDFFB30 (active): "SyncWorker_4"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016) 
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0947FB30 (active): "SyncWorker_5"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0937BB30 (active): "SyncWorker_6"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A089FFB30 (active): "SyncWorker_7"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A083FFB30 (active): "SyncWorker_8"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A07DFFB30 (active): "SyncWorker_9"                   
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F8A0537FB30 (active): "Recorder"                       
    _run_event_loop (homeassistant/components/recorder/core.py:856)                                                                
    _run (homeassistant/components/recorder/core.py:762)         
    run (homeassistant/components/recorder/core.py:686)          
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D96E2B30 (active): "Thread-2 (_thread_main)"        
    _loop (paho/mqtt/client.py:1150)                             
    loop_forever (paho/mqtt/client.py:1756)                      
    _thread_main (paho/mqtt/client.py:3591)                      
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D8EFFB30 (active): "SyncWorker_10"                  
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D8DECB30 (active): "SyncWorker_11"                  
    _worker (concurrent/futures/thread.py:81)                    
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D7BFFB30 (active): "zeroconf-ServiceBrowser-_googlecast._tcp-117"        
    run (zeroconf/_services/browser.py:539)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D7AECB30 (idle): "Thread-3"                         
    wait (threading.py:324)                                      
    wait (threading.py:607)                                      
    run (pychromecast/discovery.py:304)                          
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D78D9B30 (active): "Thread-5"                       
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D77C6B30 (active): "Thread-6"                       
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D75B3B30 (active): "Thread-7"                       
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D74A0B30 (active): "Thread-8"                       
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D738DB30 (active): "Thread-9"                       
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D727AB30 (active): "Thread-10"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D7167B30 (active): "Thread-11"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D6CA0B30 (active): "Thread-12"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D6A8DB30 (active): "Thread-13"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D525DB30 (active): "Thread-14"                
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D514AB30 (active): "Thread-15"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D4D37B30 (active): "Thread-16"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D45A4B30 (active): "Thread-17"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D4391B30 (active): "Thread-18"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D417EB30 (active): "Thread-19"                      
    run_once (pychromecast/socket_client.py:579)                 
    run (pychromecast/socket_client.py:540)                      
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D22D3B30 (idle): "stream_worker"                    
    wait (threading.py:324)                                      
    wait (threading.py:607)                                      
    _run_worker (homeassistant/components/stream/__init__.py:462)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D1504B30 (active): "DHCPWatcher"                    
    select (scapy/supersocket.py:264)                            
    _run (scapy/sendrecv.py:1219)                                
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D06D8B30 (idle): "stream_worker"                    
    wait (threading.py:324)                                      
    wait (threading.py:607)                                      
    _run_worker (homeassistant/components/stream/__init__.py:462)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89D00C5B30 (idle): "stream_worker"                    
    wait (threading.py:324)                                      
    wait (threading.py:607)                                      
    _run_worker (homeassistant/components/stream/__init__.py:462)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                       
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CFFB2B30 (active): "stream_worker"                  
    __next__ (homeassistant/components/stream/worker.py:409)     
    stream_worker (homeassistant/components/stream/worker.py:619)                                                                  
    _run_worker (homeassistant/components/stream/__init__.py:424)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CF91FB30 (idle): "stream_worker"                    
    wait (threading.py:324)                                      
    wait (threading.py:607)                                      
    _run_worker (homeassistant/components/stream/__init__.py:462)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CF80CB30 (active): "stream_worker"                  
    __next__ (homeassistant/components/stream/worker.py:409)     
    stream_worker (homeassistant/components/stream/worker.py:619)                                                                  
    _run_worker (homeassistant/components/stream/__init__.py:424)                                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CE8C0B30 (active): "DbWorker_0"                     
    _worker (concurrent/futures/thread.py:81)                    
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CD6BBB30 (active): "DbWorker_1"                     
    _worker (concurrent/futures/thread.py:81)                    
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89CD34BB30 (active): "DbWorker_2"                     
    _worker (concurrent/futures/thread.py:81)                    
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                                
Thread 0x7F89B7A28B30 (active): "DbWorker_3"                     
    _worker (concurrent/futures/thread.py:81)                    
    _worker_with_shutdown_hook (homeassistant/components/recorder/executor.py:17)                                                  
    run (threading.py:953)                                       
    _bootstrap_inner (threading.py:1016)                         
    _bootstrap (threading.py:973)                  
bdraco commented 1 year ago

Looks like the number of threads is ok with cast using the most but nothing looks obviously out of control but without an actual recording thats all I can really tell.

KitHubek commented 1 year ago

when do record HA freeze and restart

i see that i have python v3.10.11 and You have v3.11.3. this can do problem or not?

bdraco commented 1 year ago

2023.6.0 will have python 3.11

It comes out next Wednesday so maybe it would be good to try again than

KitHubek commented 1 year ago

i dont know wht to do more. Something is wrong, but all working ok. I have many devices and automations and all working ok. Now with only btproxy lock working ok too.