Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Errors in Eufy setup with home-assistant #2

@jmutnick

Description

@jmutnick

Getting this error on Home Assistant startup. I have verified my credentials are correct.

2018-04-28 08:03:16 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform eufy
Traceback (most recent call last):
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/eufy.py", line 20, in setup_platform
add_devices([EufySwitch(discovery_info)], True)
File "/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/eufy.py", line 37, in init
self._switch.connect()
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 201, in connect
return device.connect(self)
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 56, in connect
self.update()
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 218, in update
response = self.get_status()
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 214, in get_status
response = self.send_packet(packet, True)
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 204, in send_packet
return device.send_packet(self, packet, response)
File "/home/pi/homeassistant/lib/python3.5/site-packages/lakeside/init.py", line 74, in send_packet
length = struct.unpack("<H", decrypted_packet[0:2])[0]
struct.error: unpack requires a bytes object of length 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions