ha0y / xiaomi_miot_raw

All-in-one & Easy-to-use. Integrate all your Xiaomi Smart Home - with a single integration and NO YAML files - into Home Assistant.
Apache License 2.0
2.19k stars 231 forks source link

please help #257

Open mountain0320 opened 2 years ago

mountain0320 commented 2 years ago

waqi: Error on device update! 6:19:06 PM – (ERROR) Sensor - message first occurred at 6:19:06 PM and shows up 14 times Setup of light platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Light - message first occurred at 6:19:06 PM and shows up 2 times Setup of switch platform adguard is taking over 10 seconds. 6:19:06 PM – (WARNING) Switch - message first occurred at 6:19:06 PM and shows up 8 times Setup of climate platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Climate - message first occurred at 6:19:06 PM and shows up 2 times Setup of fan platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Fan - message first occurred at 6:19:06 PM and shows up 10 times Setup of select platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Select - message first occurred at 6:19:06 PM and shows up 21 times Setup of number platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Number - message first occurred at 6:19:06 PM and shows up 21 times Setup of media_player platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Media player - message first occurred at 6:19:06 PM and shows up 4 times Setup of binary_sensor platform xiaomi_miot_raw is taking over 10 seconds. 6:19:06 PM – (WARNING) Binary sensor - message first occurred at 6:19:06 PM and shows up 8 times Setup of sensor platform waqi is taking over 10 seconds. 6:19:06 PM – (WARNING) Sensor - message first occurred at 6:19:06 PM and shows up 9 times Got error when receiving: timed out 6:19:05 PM – (ERROR) /usr/local/lib/python3.9/site-packages/miio/miioprotocol.py

ha0y commented 2 years ago

Hello, Those "taking over 10 seconds" doesn't matter as it takes time to login your account to Xiaomi Cloud server. waqi: Error on device update! What is this?

mountain0320 commented 2 years ago

2021-09-22 14:55:18 ERROR (MainThread) [homeassistant.components.sensor] waqi: Error on device update! Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/waqiasync/init.py", line 47, in _get resp = yield from self._session.get( File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport await waiter asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 633, in async_device_update await task File "/usr/src/homeassistant/homeassistant/components/waqi/sensor.py", line 181, in async_update result = await self._client.get_station_by_number(self.uid) File "/usr/local/lib/python3.9/site-packages/waqiasync/init.py", line 42, in get_station_by_number return (yield from self._get(FEED_NUMBER_URL.format(number))) File "/usr/local/lib/python3.9/site-packages/waqiasync/init.py", line 49, in _get return (yield from resp.json())['data'] File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 45, in exit self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 92, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError