Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with AC180 #1

Open
jsaiko opened this issue Jun 14, 2024 · 2 comments
Open

Error with AC180 #1

jsaiko opened this issue Jun 14, 2024 · 2 comments

Comments

@jsaiko
Copy link

jsaiko commented Jun 14, 2024

Hello. I cant seem to get past this error when attempting to connect to my AC180. The android app picks it up fine.

2024-06-14 14:41:04 INFO Connecting to MQTT broker...
2024-06-14 14:41:04 INFO Starting to poll clients...
2024-06-14 14:41:04 INFO Connecting to clients: ['C9:9C:3C:7B:C7:80']
2024-06-14 14:41:05 INFO Connected to MQTT broker
2024-06-14 14:41:10 INFO Connected to device: C9:9C:3C:7B:C7:80
2024-06-14 14:41:10 INFO Device C9:9C:3C:7B:C7:80 has name: AC1802411002689394
2024-06-14 14:41:10 WARNING Delayed reconnect to C9:9C:3C:7B:C7:80 after error
2024-06-14 14:41:16 INFO Connected to device: C9:9C:3C:7B:C7:80
2024-06-14 14:41:16 WARNING Delayed reconnect to C9:9C:3C:7B:C7:80 after error
2024-06-14 14:41:16 ERROR Crashing with uncaught exception:
Traceback (most recent call last):
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bluetti_mqtt/device_handler.py", line 31, in run
await asyncio.gather(*(polling_tasks + pack_polling_tasks + [manager_task]))
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bluetti_mqtt/device_handler.py", line 50, in _poll
await self._poll_with_command(device, command)
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bluetti_mqtt/device_handler.py", line 89, in _poll_with_command
response = cast(bytes, await response_future)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bluetti_mqtt/bluetooth/client.py", line 119, in _perform_command
await self.client.write_gatt_char(
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bleak/init.py", line 786, in write_gatt_char
await self._backend.write_gatt_char(characteristic, data, response)
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/bleak/backends/bluezdbus/client.py", line 835, in write_gatt_char
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/opt/bluetti-mqtt/lib/python3.11/site-packages/dbus_fast/aio/message_bus.py", line 385, in call
await future
File "src/dbus_fast/aio/message_reader.py", line 19, in dbus_fast.aio.message_reader._message_reader
File "src/dbus_fast/_private/unmarshaller.py", line 777, in dbus_fast._private.unmarshaller.Unmarshaller._unmarshall
File "src/dbus_fast/_private/unmarshaller.py", line 638, in dbus_fast._private.unmarshaller.Unmarshaller._read_header
File "src/dbus_fast/_private/unmarshaller.py", line 374, in dbus_fast._private.unmarshaller.Unmarshaller._read_to_pos
File "src/dbus_fast/_private/unmarshaller.py", line 317, in dbus_fast._private.unmarshaller.Unmarshaller._read_sock_with_fds
EOFError
2024-06-14 14:41:16 INFO Shutting down...

@jsaiko
Copy link
Author

jsaiko commented Jul 25, 2024

related to Patrick762/hassio-bluetti-bt#120

@ftrueck
Copy link
Owner

ftrueck commented Aug 29, 2024

True, seems to be a problem that has to be solved.
Unfortunately I am not into the process of reverse engineering.
So I am not able to fix this for now. If a solution is found I can try to implement it but until then I have to leave the issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants