core: Vesync integration is not returning any devices
The problem
Hi!
I have a Levoit Core 200s and wanted to use the Vesync integration since I have been controlling the device via the Vesync app. When I login to the integration, nothing happens. The integration does not pull in the device.
I tried adding the raw github code from HA core as a custom component and added some additional logging. When it runs manager.update
, it returns zero devices. I tried forcing it via manager.get_devices
and received the error below.
I’m not sure if this is an API error, an issue with the pyVesync library or its integration with HA. I don’t receive a login error and running manager.enabled
returns true, so it looks like it’s accepting my credentials.
What version of Home Assistant Core has the issue?
core-2021.11.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
vesync
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2021-12-10 00:11:15 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for vesync doing I/O at custom_components/vesync/common.py, line 18: _LOGGER.info(manager.get_devices())
2021-12-10 00:11:15 WARNING (MainThread) [pyvesync.helpers] I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/vesync/common.py, line 18: _LOGGER.info(manager.get_devices())
2021-12-10 00:11:15 WARNING (MainThread) [pyvesync.vesync] Error retrieving device list
2021-12-10 00:11:15 INFO (MainThread) [custom_components.vesync.common] False
Additional information
Log error is a result of this:
"""Assign devices to proper component."""
devices = {}
devices[VS_SWITCHES] = []
devices[VS_FANS] = []
devices[VS_LIGHTS] = []
_LOGGER.info(manager.get_devices())
await hass.async_add_executor_job(manager.update)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (5 by maintainers)
I’m having the same problem, but I suspect this is because my only VeSync device is a Levoit Core 600S, which is fairly new and doesn’t appear to have made it into the supported list yet. I’ll be happy to open a separate issue for that, but not completely sure if that’s considered a bug or a new feature request.