I use mqtt to send the data. after 2 time send the error come out. I not sure what happen because i m new in homeassistent
the error is
Exception in thread Thread-10:
Traceback (most recent call last):
File “/usr/lib/python3.4/threading.py”, line 920, in _bootstrap_inner
self.run()
File “/usr/lib/python3.4/threading.py”, line 868, in run
self._target(*self._args, **self._kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 2606, in _thread_main
self.loop_forever(retry_first_connection=True)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 1470, in loop_forever
rc = self.loop(timeout, max_packets)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 995, in loop
rc = self.loop_read(max_packets)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 1273, in loop_read
rc = self._packet_read()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 1838, in _packet_read
rc = self._packet_handle()
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 2281, in _packet_handle
return self._handle_pubackcomp(“PUBACK”)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/paho/mqtt/client.py”, line 2570, in _handle_pubackcomp
mid, = struct.unpack("!H", self._in_packet[‘packet’])
struct.error: unpack requires a bytes object of length 2