core: Error while setting up platform eufy
Home Assistant release with the issue:
Home Assistant 0.78.3
Last working Home Assistant release (if known): 0.77.3
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io on RasPi3
Component/platform:
https://www.home-assistant.io/components/eufy/
Description of problem: Have one registered light with Eufy. Prior to 0.78, light worked. After upgrading, the light no longer is found in Home Assistant, and the Eufy platform throws this error on start up.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
# Eufy Platform
eufy:
username: !secret email
password: !secret eufy_password
Traceback (if applicable):
Mon Sep 24 2018 22:00:34 GMT-0400 (Eastern Daylight Time)
Error while setting up platform eufy
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/eufy.py", line 31, in setup_platform
add_entities([EufyLight(discovery_info)], True)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/eufy.py", line 58, in __init__
self._bulb.connect()
File "/config/deps/lib/python3.6/site-packages/lakeside/__init__.py", line 128, in connect
return device.connect(self)
File "/config/deps/lib/python3.6/site-packages/lakeside/__init__.py", line 66, in connect
self.update()
File "/config/deps/lib/python3.6/site-packages/lakeside/__init__.py", line 192, in update
response = self.get_status()
File "/config/deps/lib/python3.6/site-packages/lakeside/__init__.py", line 138, in get_status
packet.sequence = self.get_sequence()
File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/python_message.py", line 674, in field_setter
new_value = type_checker.CheckValue(new_value)
File "/usr/local/lib/python3.6/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue
raise ValueError('Value out of range: %d' % proposed_value)
ValueError: Value out of range: 2348398290
Additional information:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Update Lakeside dependency in Eufy component This should fix #16834 — committed to mjg59/home-assistant by mjg59 5 years ago
This should be fixed in the next release of Home Assistant. Sorry it took so long - I had something of a conceptual misunderstanding around how Protobufs work and thought this was a much more complicated problem than it actually was.
I’m not sure if this is valid for other setup, but on my Docker, the
lakesiderequirement on/usr/src/app/requirements_all.txtis for version 0.10The last version of lakeside is 0.11, and this version is required for detecting T1203-devices. Maybe it’s time to update the docker image…