You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I running the python on a windows machine and can scan and fine my Bluetti device. When running the broker command it connect to my MQTT broker but then crashes. On my broker I see the connection, it is accepted by the broker, a subscription is created. Then the client disconnects.
Any assistance would be greatly appreciated.
Command trace... XX used to hide IDs.
C:\Windows\System32>bluetti-mqtt --broker 192.168.1.XX --username Bluetti --password Bluetti --interval 10 04:7F:0E:A3:XX:XX
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2023-10-27 15:54:53 INFO Connecting to MQTT broker...
2023-10-27 15:54:53 INFO Starting to poll clients...
2023-10-27 15:54:53 INFO Connecting to clients: ['04:7F:0E:A3:XX:XX']
2023-10-27 15:54:53 INFO Connected to MQTT broker
2023-10-27 15:54:53 WARNING filtered_messages() is deprecated and will be removed in a future version. Use messages() together with Topic.matches() instead.
2023-10-27 15:55:00 INFO Connected to device: 04:7F:0E:A3:XX:XX
2023-10-27 15:55:00 INFO Device 04:7F:0E:A3:XX:XX has name: AC200M2224002627XXX
2023-10-27 15:55:00 ERROR Crashing with uncaught exception:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 31, in run
await asyncio.gather(*(polling_tasks + pack_polling_tasks + [manager_task]))
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 65, in _pack_poll
device = self._get_device(address)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 103, in get_device
self.devices[address] = build_device(address, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\bluetooth_init.py", line 28, in build_device
if match[1] == 'AC200M':
~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
2023-10-27 15:55:00 INFO Shutting down...
The text was updated successfully, but these errors were encountered:
Thanks for the response I was installing using pip install bluetti-mqtt and then as you indicated i installed the latest version from the github url. But I'm still getting the same error.
I running the python on a windows machine and can scan and fine my Bluetti device. When running the broker command it connect to my MQTT broker but then crashes. On my broker I see the connection, it is accepted by the broker, a subscription is created. Then the client disconnects.
Any assistance would be greatly appreciated.
Command trace... XX used to hide IDs.
C:\Windows\System32>bluetti-mqtt --broker 192.168.1.XX --username Bluetti --password Bluetti --interval 10 04:7F:0E:A3:XX:XX
We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name. You can find the new repository at https://github.com/sbtinstruments/aiomqtt
2023-10-27 15:54:53 INFO Connecting to MQTT broker...
2023-10-27 15:54:53 INFO Starting to poll clients...
2023-10-27 15:54:53 INFO Connecting to clients: ['04:7F:0E:A3:XX:XX']
2023-10-27 15:54:53 INFO Connected to MQTT broker
2023-10-27 15:54:53 WARNING filtered_messages() is deprecated and will be removed in a future version. Use messages() together with Topic.matches() instead.
2023-10-27 15:55:00 INFO Connected to device: 04:7F:0E:A3:XX:XX
2023-10-27 15:55:00 INFO Device 04:7F:0E:A3:XX:XX has name: AC200M2224002627XXX
2023-10-27 15:55:00 ERROR Crashing with uncaught exception:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 31, in run
await asyncio.gather(*(polling_tasks + pack_polling_tasks + [manager_task]))
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 65, in _pack_poll
device = self._get_device(address)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\device_handler.py", line 103, in get_device
self.devices[address] = build_device(address, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\bluetooth_init.py", line 28, in build_device
if match[1] == 'AC200M':
~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
2023-10-27 15:55:00 INFO Shutting down...
The text was updated successfully, but these errors were encountered: