TionAPI / HA-tion

Home assistant integration for Tion breezers
Apache License 2.0
72 stars 6 forks source link

Ошибки подключения к бризерам на 2022.8.7 #113

Closed fishenebelny closed 2 years ago

fishenebelny commented 2 years ago

Общая информация

Краткое описание

Установил 2022.8.6 и через определенное время один из бризеров отключился полностью и не хочет подключаться. Другой залипает, пока руками не подключился через bluetoothctl.

Debug-log

2022-09-09 12:54:03.601 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 12:54:03.602 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 12:54:03.602 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 12:54:03.602 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x953f85f8>,),kwargs={})
2022-09-09 12:54:13.623 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 12:54:15.628 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x953f85f8>,),kwargs={})
2022-09-09 12:54:25.646 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 12:54:27.651 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x953f85f8>,), {})
2022-09-09 12:54:27.655 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 12:54:27.656 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 12:54:27.656 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 12:54:27.662 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 12:54:27.665 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.064 seconds (success: False)
2022-09-09 12:55:47.667 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 12:55:47.668 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 12:55:47.669 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 12:55:47.669 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961f7ec8>,),kwargs={})
2022-09-09 12:55:57.686 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 12:55:59.689 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961f7ec8>,),kwargs={})
2022-09-09 12:56:09.710 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 12:56:11.716 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x961f7ec8>,), {})
2022-09-09 12:56:11.720 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 12:56:11.720 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 12:56:11.721 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 12:56:11.724 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 12:56:11.726 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.057 seconds (success: False)
2022-09-09 12:57:31.727 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 12:57:31.728 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 12:57:31.728 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 12:57:31.729 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xa3b3f328>,),kwargs={})
2022-09-09 12:57:41.749 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 12:57:43.754 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xa3b3f328>,),kwargs={})
2022-09-09 12:57:53.777 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 12:57:55.782 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0xa3b3f328>,), {})
2022-09-09 12:57:55.786 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 12:57:55.786 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 12:57:55.786 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 12:57:55.792 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 12:57:55.796 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.068 seconds (success: False)
2022-09-09 12:58:33.506 INFO (MainThread) [custom_components.tion.climate] Need to set mode to off, current mode is heat
2022-09-09 12:58:33.507 INFO (MainThread) [custom_components.tion] Need to set: state='off'
2022-09-09 12:59:15.797 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 12:59:15.798 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 12:59:15.799 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 12:59:15.799 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9759df88>,),kwargs={})
2022-09-09 12:59:25.816 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 12:59:27.824 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9759df88>,),kwargs={})
2022-09-09 12:59:37.842 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 12:59:39.847 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x9759df88>,), {})
2022-09-09 12:59:39.850 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 12:59:39.851 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 12:59:39.851 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 12:59:39.854 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 12:59:39.859 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.061 seconds (success: False)
2022-09-09 13:00:59.861 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:00:59.862 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:00:59.863 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:00:59.863 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xa2daa478>,),kwargs={})
2022-09-09 13:01:09.885 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:01:11.890 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xa2daa478>,),kwargs={})
2022-09-09 13:01:21.904 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:01:23.909 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0xa2daa478>,), {})
2022-09-09 13:01:23.913 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:01:23.914 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:01:23.914 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:01:23.918 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:01:23.922 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.060 seconds (success: False)
2022-09-09 13:02:43.924 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:02:43.925 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:02:43.925 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:02:43.925 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x972797c0>,),kwargs={})
2022-09-09 13:02:53.949 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:02:55.957 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x972797c0>,),kwargs={})
2022-09-09 13:03:05.978 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:03:07.982 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x972797c0>,), {})
2022-09-09 13:03:07.985 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:03:07.985 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:03:07.985 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:03:07.988 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:03:07.991 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.066 seconds (success: False)
2022-09-09 13:04:27.992 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:04:27.993 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:04:27.994 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:04:27.994 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961dd028>,),kwargs={})
2022-09-09 13:04:36.651 INFO (MainThread) [custom_components.tion.climate] Need to set mode to off, current mode is heat
2022-09-09 13:04:36.651 INFO (MainThread) [custom_components.tion] Need to set: state='off'
2022-09-09 13:04:38.014 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:04:40.019 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961dd028>,),kwargs={})
2022-09-09 13:04:50.035 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:04:52.038 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x961dd028>,), {})
2022-09-09 13:04:52.041 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:04:52.041 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:04:52.041 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:04:52.044 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:04:52.048 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.054 seconds (success: False)
2022-09-09 13:04:55.669 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.cgllc_s1_d3c1_environment is taking over 10 seconds
2022-09-09 13:04:58.685 INFO (MainThread) [custom_components.tion] Need to set: heater_temp=19.0
2022-09-09 13:06:12.049 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:06:12.050 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:06:12.050 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:06:12.050 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9537eaf0>,),kwargs={})
2022-09-09 13:06:22.068 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:06:24.073 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9537eaf0>,),kwargs={})
2022-09-09 13:06:34.088 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:06:36.094 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x9537eaf0>,), {})
2022-09-09 13:06:36.097 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:06:36.097 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:06:36.097 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:06:36.102 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:06:36.105 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.056 seconds (success: False)
2022-09-09 13:07:56.108 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:07:56.109 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:07:56.110 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:07:56.110 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961dda90>,),kwargs={})
2022-09-09 13:08:06.129 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:08:08.135 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x961dda90>,),kwargs={})
2022-09-09 13:08:18.153 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:08:20.159 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x961dda90>,), {})
2022-09-09 13:08:20.163 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:08:20.163 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:08:20.163 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:08:20.169 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:08:20.173 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.063 seconds (success: False)
2022-09-09 13:08:27.962 DEBUG (MainThread) [tion_btle.tion] Enabling notification. self.connection_status='disc'
2022-09-09 13:08:27.962 WARNING (MainThread) [tion_btle.tion] Got exception Not connected while enabling notifications!
2022-09-09 13:08:27.966 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:08:27.966 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:08:27.966 CRITICAL (MainThread) [custom_components.tion] Response is {}
2022-09-09 13:08:27.970 ERROR (MainThread) [custom_components.tion] Unexpected error fetching Tion Bedroom data: Not connected
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 164, in _async_update_data
return await self.update_method()
File "/config/custom_components/tion/__init__.py", line 103, in async_update_state
raise e
File "/config/custom_components/tion/__init__.py", line 93, in async_update_state
response = await self.__tion.get()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 205, in get
await self.get_state_from_breezer()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 185, in get_state_from_breezer
await self.connect()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 502, in connect
await self._connect()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 305, in _connect
await self._enable_notifications()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 334, in _enable_notifications
raise e
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 331, in _enable_notifications
await self._btle.start_notify(self.uuid_notify, self._delegation.handleNotification)
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 779, in start_notify
raise BleakError("Not connected")
bleak.exc.BleakError: Not connected
2022-09-09 13:08:27.974 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Bedroom data in 118465.972 seconds (success: False)
2022-09-09 13:08:27.983 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:08:27.983 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={})
2022-09-09 13:08:28.015 DEBUG (MainThread) [tion_btle.tion] Enabling notification. self.connection_status='connected'
2022-09-09 13:08:28.119 DEBUG (MainThread) [tion_btle.tion] _enable_notifications done
2022-09-09 13:08:28.120 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.121 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.122 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.122 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.122 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.125 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.125 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.125 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.125 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.126 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.127 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.127 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.127 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.128 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.128 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.128 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.128 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.129 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.129 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.130 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.130 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.131 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='connected'.
2022-09-09 13:08:28.131 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:08:28.131 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.131 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.145 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.152 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.152 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.153 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.158 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.158 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.159 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.162 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.162 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.163 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.171 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.171 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.172 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.174 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.174 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.182 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.184 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.184 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.185 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.187 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.188 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.189 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.191 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.191 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.193 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.195 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.195 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.196 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.199 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.199 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.205 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.207 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.207 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.208 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.211 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.211 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.213 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.215 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.215 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.216 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.219 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.219 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.220 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.223 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.223 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.227 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b31021140100151514a3000b290000680033005a
2022-09-09 13:08:28.227 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3\x10!\x14\x01\x00\x15\x15\x14\xa3\x00\x0b)\x00\x00h\x003\x00Z')]
2022-09-09 13:08:28.228 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:08:28.228 DEBUG (MainThread) [tion_btle.s3] Data is b31021140100151514a3000b290000680033005a
2022-09-09 13:08:28.228 DEBUG (MainThread) [tion_btle.tion] Will write bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')
2022-09-09 13:08:28.230 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.230 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.234 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will not try again
2022-09-09 13:08:28.237 CRITICAL (MainThread) [tion_btle.tion] Retry limit (3) exceeded for _try_write((<tion_btle.s3.TionS3 object at 0xabb3a7d8>,), {'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.240 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will not try again
2022-09-09 13:08:28.242 CRITICAL (MainThread) [tion_btle.tion] Retry limit (3) exceeded for _try_write((<tion_btle.s3.TionS3 object at 0xabb3a7d8>,), {'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.243 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will not try again
2022-09-09 13:08:28.245 CRITICAL (MainThread) [tion_btle.tion] Retry limit (3) exceeded for _try_write((<tion_btle.s3.TionS3 object at 0xabb3a7d8>,), {'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.246 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will not try again
2022-09-09 13:08:28.248 CRITICAL (MainThread) [tion_btle.tion] Retry limit (3) exceeded for _try_write((<tion_btle.s3.TionS3 object at 0xabb3a7d8>,), {'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:08:28.250 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_hvac_mode (c:01GCGTZEWCT7D3N6HZ3N97MJFJ): entity_id=['climate.tion_bedroom'], hvac_mode=off>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/tion/climate.py", line 117, in async_set_hvac_mode
await self._async_set_state(is_on=False)
File "/config/custom_components/tion/climate.py", line 239, in _async_set_state
await self.coordinator.set(**kwargs)
File "/config/custom_components/tion/__init__.py", line 132, in set
await self.__tion.set(kwargs)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 245, in set
current_settings = await self.get(skip_update=True)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 205, in get
await self.get_state_from_breezer()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 186, in get_state_from_breezer
await self._try_write(request=self.command_getStatus)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 44, in wrapper
raise MaxTriesExceededError
tion_btle.tion.MaxTriesExceededError
2022-09-09 13:08:28.268 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_hvac_mode (c:01GCGVAPD936HDQDX0024WJYMW): hvac_mode=off, entity_id=['climate.tion_bedroom']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/tion/climate.py", line 117, in async_set_hvac_mode
await self._async_set_state(is_on=False)
File "/config/custom_components/tion/climate.py", line 239, in _async_set_state
await self.coordinator.set(**kwargs)
File "/config/custom_components/tion/__init__.py", line 132, in set
await self.__tion.set(kwargs)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 245, in set
current_settings = await self.get(skip_update=True)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 205, in get
await self.get_state_from_breezer()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 186, in get_state_from_breezer
await self._try_write(request=self.command_getStatus)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 44, in wrapper
raise MaxTriesExceededError
tion_btle.tion.MaxTriesExceededError
2022-09-09 13:08:28.272 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_temperature (c:01GCGVBBXVPBHBB4YTTN5X8N2A): temperature=19.0, entity_id=['climate.tion_bedroom']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 588, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/config/custom_components/tion/climate.py", line 219, in async_set_temperature
await self._async_set_state(heater_temp=temperature)
File "/config/custom_components/tion/climate.py", line 239, in _async_set_state
await self.coordinator.set(**kwargs)
File "/config/custom_components/tion/__init__.py", line 132, in set
await self.__tion.set(kwargs)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 245, in set
current_settings = await self.get(skip_update=True)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 205, in get
await self.get_state_from_breezer()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 186, in get_state_from_breezer
await self._try_write(request=self.command_getStatus)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 44, in wrapper
raise MaxTriesExceededError
tion_btle.tion.MaxTriesExceededError
2022-09-09 13:08:28.276 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_hvac_mode (c:01GCDVS8F039XZ4FMX9EDF6C9E): entity_id=['climate.tion_bedroom'], hvac_mode=off>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/tion/climate.py", line 117, in async_set_hvac_mode
await self._async_set_state(is_on=False)
File "/config/custom_components/tion/climate.py", line 239, in _async_set_state
await self.coordinator.set(**kwargs)
File "/config/custom_components/tion/__init__.py", line 132, in set
await self.__tion.set(kwargs)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 245, in set
current_settings = await self.get(skip_update=True)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 205, in get
await self.get_state_from_breezer()
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 186, in get_state_from_breezer
await self._try_write(request=self.command_getStatus)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 44, in wrapper
raise MaxTriesExceededError
tion_btle.tion.MaxTriesExceededError
2022-09-09 13:08:28.280 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.290 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.291 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.296 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.298 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.299 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.304 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b31021140100151514a3000b290000680033005a
2022-09-09 13:08:28.304 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3\x10!\x14\x01\x00\x15\x15\x14\xa3\x00\x0b)\x00\x00h\x003\x00Z')]
2022-09-09 13:08:28.304 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:08:28.304 DEBUG (MainThread) [tion_btle.s3] Data is b31021140100151514a3000b290000680033005a
2022-09-09 13:08:28.305 DEBUG (MainThread) [tion_btle.tion] Will write bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')
2022-09-09 13:08:28.305 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.305 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.308 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.314 DEBUG (MainThread) [tion_btle.tion] Trying 1/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.314 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.318 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.320 DEBUG (MainThread) [tion_btle.tion] Trying 2/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.320 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.324 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will try again
2022-09-09 13:08:28.326 DEBUG (MainThread) [tion_btle.tion] Trying 3/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')),kwargs={})
2022-09-09 13:08:28.326 DEBUG (MainThread) [tion_btle.tion] Writing 3d0201140201000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:08:28.329 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] In Progress. Will not try again
2022-09-09 13:08:28.332 CRITICAL (MainThread) [tion_btle.tion] Retry limit (3) exceeded for _try_write((<tion_btle.s3.TionS3 object at 0xabb3a7d8>, bytearray(b'=\x02\x01\x14\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')), {})
2022-09-09 13:08:28.333 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='connected'.
2022-09-09 13:08:28.432 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:08:28.435 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b32021140100151514a3000b290000680033005a
2022-09-09 13:08:28.435 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3 !\x14\x01\x00\x15\x15\x14\xa3\x00\x0b)\x00\x00h\x003\x00Z')]
2022-09-09 13:08:29.434 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='connected'.
2022-09-09 13:08:31.115 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:08:31.115 DEBUG (MainThread) [custom_components.tion] Manually updated Tion Bedroom data
2022-09-09 13:08:31.155 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:08:31.156 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall climate.set_hvac_mode (c:01GCGDVGSV9MPXC2T7BB7RRH93): entity_id=['climate.tion_bedroom'], hvac_mode=off>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/tion/climate.py", line 117, in async_set_hvac_mode
await self._async_set_state(is_on=False)
File "/config/custom_components/tion/climate.py", line 239, in _async_set_state
await self.coordinator.set(**kwargs)
File "/config/custom_components/tion/__init__.py", line 132, in set
await self.__tion.set(kwargs)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 251, in set
await self._send_request(encoded_request)
File "/usr/local/lib/python3.10/site-packages/tion_btle/s3.py", line 100, in _send_request
await self._try_write(request)
File "/usr/local/lib/python3.10/site-packages/tion_btle/tion.py", line 44, in wrapper
raise MaxTriesExceededError
tion_btle.tion.MaxTriesExceededError
2022-09-09 13:09:31.001 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:09:31.001 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:09:31.001 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={})
2022-09-09 13:09:32.013 DEBUG (MainThread) [tion_btle.tion] Enabling notification. self.connection_status='connected'
2022-09-09 13:09:32.110 DEBUG (MainThread) [tion_btle.tion] _enable_notifications done
2022-09-09 13:09:32.111 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:09:32.111 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:09:32.111 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:09:32.199 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:09:32.202 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b31021140100151514a3000b2a0000680033005a
2022-09-09 13:09:32.203 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3\x10!\x14\x01\x00\x15\x15\x14\xa3\x00\x0b*\x00\x00h\x003\x00Z')]
2022-09-09 13:09:33.201 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='connected'.
2022-09-09 13:09:35.100 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:09:35.100 DEBUG (MainThread) [tion_btle.s3] Data is b31021140100151514a3000b2a0000680033005a
2022-09-09 13:09:35.101 DEBUG (MainThread) [custom_components.tion] Result is {'state': 'off', 'heater': True, 'heating': 'off', 'sound': 'off', 'mode': 'outside', 'out_temp': 21, 'in_temp': 20, 'heater_temp': 20, 'fan_speed': 1, 'filter_remain': 163, 'time': '11:42', 'request_error_code': 0, 'model': 'S3', 'code': 200, 'timer': 'off', 'productivity': 0, 'fw_version': '0033', 'is_on': False, 'is_heating': False}
2022-09-09 13:09:35.101 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Bedroom data in 4.100 seconds (success: True)
2022-09-09 13:09:40.174 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:09:40.175 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:09:40.176 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:09:40.176 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9601e550>,),kwargs={})
2022-09-09 13:09:50.198 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:09:52.204 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x9601e550>,),kwargs={})
2022-09-09 13:10:02.224 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:10:04.231 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x9601e550>,), {})
2022-09-09 13:10:04.235 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:10:04.235 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:10:04.235 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:10:04.241 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:10:04.244 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.069 seconds (success: False)
2022-09-09 13:10:35.002 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:10:35.002 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:10:35.002 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={})
2022-09-09 13:10:36.009 DEBUG (MainThread) [tion_btle.tion] Enabling notification. self.connection_status='connected'
2022-09-09 13:10:36.107 DEBUG (MainThread) [tion_btle.tion] _enable_notifications done
2022-09-09 13:10:36.107 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:10:36.107 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:10:36.107 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:10:36.239 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:10:36.243 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b31021140100151514a3000b2b0000680033005a
2022-09-09 13:10:36.244 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3\x10!\x14\x01\x00\x15\x15\x14\xa3\x00\x0b+\x00\x00h\x003\x00Z')]
2022-09-09 13:10:37.242 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='connected'.
2022-09-09 13:10:39.096 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:10:39.096 DEBUG (MainThread) [tion_btle.s3] Data is b31021140100151514a3000b2b0000680033005a
2022-09-09 13:10:39.097 DEBUG (MainThread) [custom_components.tion] Result is {'state': 'off', 'heater': True, 'heating': 'off', 'sound': 'off', 'mode': 'outside', 'out_temp': 21, 'in_temp': 20, 'heater_temp': 20, 'fan_speed': 1, 'filter_remain': 163, 'time': '11:43', 'request_error_code': 0, 'model': 'S3', 'code': 200, 'timer': 'off', 'productivity': 0, 'fw_version': '0033', 'is_on': False, 'is_heating': False}
2022-09-09 13:10:39.097 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Bedroom data in 4.096 seconds (success: True)
2022-09-09 13:11:24.246 INFO (MainThread) [custom_components.tion] Setting up d5:91:dd:fc:1a:60
2022-09-09 13:11:24.247 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:11:24.247 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:11:24.247 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x969a93e8>,),kwargs={})
2022-09-09 13:11:34.260 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will try again
2022-09-09 13:11:36.267 DEBUG (MainThread) [tion_btle.tion] Trying 1/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0x969a93e8>,),kwargs={})
2022-09-09 13:11:39.001 INFO (MainThread) [custom_components.tion] Tion instance update started
2022-09-09 13:11:39.001 DEBUG (MainThread) [tion_btle.tion] Connecting. self.connection_status='disc'.
2022-09-09 13:11:39.001 DEBUG (MainThread) [tion_btle.tion] Trying 0/1: _try_connect(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={})
2022-09-09 13:11:40.016 DEBUG (MainThread) [tion_btle.tion] Enabling notification. self.connection_status='connected'
2022-09-09 13:11:40.116 DEBUG (MainThread) [tion_btle.tion] _enable_notifications done
2022-09-09 13:11:40.117 DEBUG (MainThread) [tion_btle.tion] _connect done. self.connection_status='connected'.
2022-09-09 13:11:40.117 DEBUG (MainThread) [tion_btle.tion] Trying 0/3: _try_write(args=(<tion_btle.s3.TionS3 object at 0xabb3a7d8>,),kwargs={'request': bytearray(b'=\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Z')})
2022-09-09 13:11:40.117 DEBUG (MainThread) [tion_btle.tion] Writing 3d0100000000000000000000000000000000005a to 6e400002-b5a3-f393-e0a9-e50e24dcca9e, self.connection_status='connected'
2022-09-09 13:11:40.203 DEBUG (MainThread) [tion_btle.tion] Collecting data
2022-09-09 13:11:40.207 DEBUG (MainThread) [tion_btle.tion] Got data in 10 response b31021140100151514a3000b2c0000680033005a
2022-09-09 13:11:40.207 DEBUG (MainThread) [tion_btle.tion] self._data=[bytearray(b'\xb3\x10!\x14\x01\x00\x15\x15\x14\xa3\x00\x0b,\x00\x00h\x003\x00Z')]
2022-09-09 13:11:41.205 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='connected'.
2022-09-09 13:11:43.106 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:11:43.106 DEBUG (MainThread) [tion_btle.s3] Data is b31021140100151514a3000b2c0000680033005a
2022-09-09 13:11:43.107 DEBUG (MainThread) [custom_components.tion] Result is {'state': 'off', 'heater': True, 'heating': 'off', 'sound': 'off', 'mode': 'outside', 'out_temp': 21, 'in_temp': 20, 'heater_temp': 20, 'fan_speed': 1, 'filter_remain': 163, 'time': '11:44', 'request_error_code': 0, 'model': 'S3', 'code': 200, 'timer': 'off', 'productivity': 0, 'fw_version': '0033', 'is_on': False, 'is_heating': False}
2022-09-09 13:11:43.107 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Bedroom data in 4.107 seconds (success: True)
2022-09-09 13:11:46.284 WARNING (MainThread) [tion_btle.tion] Got exception: [org.bluez.Error.InProgress] Operation already in progress. Will not try again
2022-09-09 13:11:48.286 CRITICAL (MainThread) [tion_btle.tion] Retry limit (1) exceeded for _try_connect((<tion_btle.s3.TionS3 object at 0x969a93e8>,), {})
2022-09-09 13:11:48.288 DEBUG (MainThread) [tion_btle.tion] Disconnecting. self.connection_status='disc'.
2022-09-09 13:11:48.288 DEBUG (MainThread) [tion_btle.tion] _disconnect done. self.connection_status='disc'
2022-09-09 13:11:48.288 CRITICAL (MainThread) [custom_components.tion] Got exception
2022-09-09 13:11:48.290 CRITICAL (MainThread) [custom_components.tion] Will delay next check
2022-09-09 13:11:48.292 DEBUG (MainThread) [custom_components.tion] Finished fetching Tion Kids data in 24.046 seconds (success: False)

Как можно воспроизвети вашу проблему

Установить на 100% работающую версию ХА 2022.7 версию 2022.8.7 и ждать.

Дополнительное описание

Не знаю куда копать. После установки какое-то время работало, но потом пропало. Вполне может быть что изменения связанные с БТ в 8 версии каким-то образом влияют на работу адаптера, которые опять начинает выдавать ошибки, которые былии ранее и были связаны с ОС и самим адаптером. Саму новую интеграцию БТ не устанавливал, она висит в интеграциях так, что ее можно установить.

IATkachenko commented 2 years ago

Доброго дня.

Это точно 4.0.1? Логи должны быть от custom_components.ha_tion_btle и в логах должны быть сообщения от update_btle_device на уровне INFO. При обновлении v3->v4 вы сделали все необходимые действия?

fishenebelny commented 2 years ago

image

fishenebelny commented 2 years ago

you MUST remove previous installation and re-add all breezers without pairing. - вот этого когда обновлял не видел. Так как обновлял сразу на 4.0.1 ) Но все работало какое-то время и без удаления/добавления.

IATkachenko commented 2 years ago

Да, потому что по сути не обновилось, а обновление, в том числе, решало проблему из issue. Когда обновляешься через 2+ версии, HACS release notes каждой версии не разворачивает...

При честном обновлении (настройки логирования тоже обновить нужно) проблема ушла? (с 2022.9 -- отдельная песня. я сам пока не обновлялся и еще не тестировал).

fishenebelny commented 2 years ago

Почему-то сразу 2 интеграции показывает. Хотя старую удалял. image

fishenebelny commented 2 years ago

Удалил старую папку интеграции руками из папки custom_components. Перезагрузил ХА. Но все равно 2 записи так и остались, но одна перестала работать. Добавил бризеры заново, но у каждого теперь есть надпись - повторная настройка: none. image

image

IATkachenko commented 2 years ago

Почему-то сразу 2 интеграции показывает. Хотя старую удалял. image

Кэш браузера.

IATkachenko commented 2 years ago

Удалил старую папку интеграции руками из папки custom_components. Перезагрузил ХА. Но все равно 2 записи так и остались, но одна перестала работать. Добавил бризеры заново, но у каждого теперь есть надпись - повторная настройка: none. image

image

А вот теперь хочу логи. По идее должно нормально стартануть или через некоторое время само заработать.

fishenebelny commented 2 years ago

Переустановил. В логах такое.

2022-09-09 16:51:28.556 DEBUG (MainThread) [custom_components.ha_tion_btle.config_flow] Going create entry with name Tion Kids
2022-09-09 16:51:28.557 DEBUG (MainThread) [custom_components.ha_tion_btle.config_flow] {'model': 'S3', 'name': 'Tion Kids', 'mac': 'D5:91:DD:FC:1A:60', 'keep_alive': 60, 'away_temp': 15, 'pair': False}
2022-09-09 16:51:28.569 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 16:51:28.570 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Tion Kids' for ha_tion_btle integration not ready yet: None; Retrying in background
2022-09-09 16:51:33.575 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 16:51:43.576 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
fishenebelny commented 2 years ago

Все равно осталась какая-то проблема с бт.

[bluetooth]# paired-devices
Device D5:91:DD:FC:1A:60 Tion Breezer 3S
Device C4:64:95:C3:5E:79 Tion Breezer 3S
[bluetooth]# connect D5:91:DD:FC:1A:60
Attempting to connect to D5:91:DD:FC:1A:60
[CHG] Device D5:91:DD:FC:1A:60 Connected: yes
[CHG] Device D5:91:DD:FC:1A:60 Connected: no
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect C4:64:95:C3:5E:79
Attempting to connect to C4:64:95:C3:5E:79
[CHG] Device C4:64:95:C3:5E:79 Connected: yes
Connection successful
[CHG] Device C4:64:95:C3:5E:79 ServicesResolved: yes
[Tion Breezer 3S]# disconnect
Attempting to disconnect from C4:64:95:C3:5E:79
[CHG] Device C4:64:95:C3:5E:79 ServicesResolved: no
Successful disconnected
[CHG] Device C4:64:95:C3:5E:79 Connected: no
[bluetooth]# 
IATkachenko commented 2 years ago

Переустановил. В логах такое.

...
2022-09-09 16:51:28.570 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Tion Kids' for ha_tion_btle integration not ready yet: None; Retrying in background
...

Выглядит прилично и через некоторое время в логах должны быть видны правильные слова.

Все равно осталась какая-то проблема с бт.

[bluetooth]# paired-devices
Device D5:91:DD:FC:1A:60 Tion Breezer 3S
Device C4:64:95:C3:5E:79 Tion Breezer 3S
[bluetooth]# connect D5:91:DD:FC:1A:60
Attempting to connect to D5:91:DD:FC:1A:60
[CHG] Device D5:91:DD:FC:1A:60 Connected: yes
[CHG] Device D5:91:DD:FC:1A:60 Connected: no
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect C4:64:95:C3:5E:79
Attempting to connect to C4:64:95:C3:5E:79
[CHG] Device C4:64:95:C3:5E:79 Connected: yes
Connection successful
[CHG] Device C4:64:95:C3:5E:79 ServicesResolved: yes
[Tion Breezer 3S]# disconnect
Attempting to disconnect from C4:64:95:C3:5E:79
[CHG] Device C4:64:95:C3:5E:79 ServicesResolved: no
Successful disconnected
[CHG] Device C4:64:95:C3:5E:79 Connected: no
[bluetooth]# 

Похоже рестарт блютуса нужен после перехода v3->v4, чтобы сбросить deadlock.

fishenebelny commented 2 years ago

Перезагрузил малину - ошибка по бт так и осталась. [bluetooth]# connect D5:91:DD:FC:1A:60 Attempting to connect to D5:91:DD:FC:1A:60 [CHG] Device D5:91:DD:FC:1A:60 Connected: yes [CHG] Device D5:91:DD:FC:1A:60 Connected: no Failed to connect: org.bluez.Error.Failed

В логах вот такое. Ошибка все еще есть....

2022-09-09 17:02:08.964 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:02:08.965 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:02:18.965 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:02:18.968 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:02:38.966 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:02:38.969 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:03:18.968 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:03:18.971 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:04:38.969 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:04:38.973 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:05:58.971 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:05:58.976 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:07:18.973 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:07:18.979 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
2022-09-09 17:08:38.975 INFO (MainThread) [custom_components.ha_tion_btle] Setting up D5:91:DD:FC:1A:60
2022-09-09 17:08:38.981 INFO (MainThread) [custom_components.ha_tion_btle] Setting up C4:64:95:C3:5E:79
fishenebelny commented 2 years ago

Надо было включить интеграцию Bluetooth.

fishenebelny commented 2 years ago

Итого. После настройки интеграции Blueetooth, которая в 2022.8 как-то по новому заработала устройство получилось добавить. Но только одно, у которого через bluetoothctl нет ошибки bluez. То есть C4:64:95:C3:5E:79 - добавился. А D5:91:DD:FC:1A:60 - этот нет.

По всей видимости надо будет переспарить их.

fishenebelny commented 2 years ago

Можно ли как-то без включения этой новой БТ интеграции сделать подключение к бризерам?

IATkachenko commented 2 years ago

Можно ли как-то без включения этой новой БТ интеграции сделать подключение к бризерам?

Через мой компонент/интеграцию -- нет. Через ESP32 -- народ пользуется https://github.com/dentra/esphome-tion

Итого. После настройки интеграции Blueetooth, которая в 2022.8 как-то по новому заработала устройство получилось добавить. Но только одно, у которого через bluetoothctl нет ошибки bluez. То есть C4:64:95:C3:5E:79 - добавился. А D5:91:DD:FC:1A:60 - этот нет.

По всей видимости надо будет переспарить их.

Почему ко второму через bluetoothctl не подключается -- не совсем понятно... Если оно не висит нигде -- должно работать.

fishenebelny commented 2 years ago

Почему ко второму через bluetoothctl не подключается -- не совсем понятно... Если оно не висит нигде -- должно работать.

Не знаю. Может быть какие-то ошибки были. Попробую из дома их переспарить.

Какая-то чудная эта новая интеграция бт от ха. выглядит так, что включен scan on или что-то другое.

IATkachenko commented 2 years ago

Да, именно так. И от этого у нас куча проблем была. Но в 4.0.1 я вроде поборол все (мой 3S сейчас стабильно работает). А в 2022.9 они продолжили корежить BT стек...

fishenebelny commented 2 years ago

В 2022.9 добавили даже расширители покрытия бт сети. В целом хорошая идея. Но каждый раз что-то новое и отваливается. Только все работать начало как часы. Опять этот бт.

fishenebelny commented 2 years ago

Переспаривание бризера помогло. Но отмечу, что из-за нового способа раьоты БТ в ХА, мой адаптер видимо опять будет зависать с какой-то периодичностью, так как спаривание удалось сделать только после перезагрузки БТ. Буду смлтреть как будет работать. Большое спасибо за помощь!

UPD: команда scan off все таки сработала как положено. Нкпонятно почему она не отрабатывала вчера. Сейчас по идее все стало так, как и было раньше. Буду смотреть как работает.