Please add support for VeSync enabled air purifier

  1. Need support for Levoit air purifier that is VeSync enabled
  2. https://www.levoit.com/allproducts/lv-pur131s-wifi-true-hepa-air-purifier
  3. https://pypi.org/project/pyvesync/1.1.0/
  4. https://github.com/markperdue/pyvesync

I agree. Just bought a Levoit purifier for it’s HASS custom component support.

I was able to ugly merge official integration with a custom one to have air purifier working with my home assistant, you can get it here https://github.com/VerityNH/myhome-hassio/tree/master/custom_components/vesync

Works fine for me, but still not official

2 Likes

I would like to add this as my request to get this feature working. I would love to have control of my air purifiers (levoit) via VeSync.

This would be great too. I don’t expect it would be too difficult since the vesync integration already exists, but then again, I’m an architect not a dev, so what do I know.

Do we need to create a FR on github?

Hi,

Followed the instructions here https://github.com/markperdue/pyvesync#integration-with-home-assistant but it didn’t seem to work and got these errors in the log…

2020-07-27 20:03:16 ERROR (MainThread) [homeassistant.config_entries] Error importing platform config_flow from integration vesync to set up vesync configuration entry: No module named 'custom_components.vesync.config_flow'
2020-07-27 20:03:17 WARNING (MainThread) [homeassistant.components.switch] SwitchDevice is deprecated, modify VeSyncSwitchHA to extend SwitchEntity

What have I missed???

@tknp any chance you could help point me in the right direction?

Thank you.

Just a heads up that my pull request for this was merged into dev.

2 Likes

@TheGardenMonkey Thanks so much for make it happen!

Installed new HA version and it works charming

1 Like

Hello, thanks for the addition of the Levoit air purifier into home assistant. Its much appreciated.

Could you elaborate on why the auto mode was removed in your pull request in 0.116 I found this the most useful of modes and was just hoping to understand what “The auto mode isn’t supported by the entity model in Home Assistant” means?
Thanks.

1 Like

Currently the “Fan” component only allows for low, medium, high and off as valid speeds. Technically Auto and Manual would be a feature or mode of the device but the Fan component does not yet support that. There is an active PR to redesign the Fan component to allow for more flexibility like Fan’s that have scales of speed (such as from 1 to 100) and the Auto mode as well. So once that is done we can update the Leviot fan one to support it as well.

3 Likes

Thanks for the response that explains, much appreciated.

1 Like

I wanted to see if there was an update here, did the additional fan modes make it into HA?

Hi @TheGardenMonkey, thanks for your help with the auto mode, it’ll be really good to get this fixed eventually - I’m just trying to find the PR for the fan component redesign you mentioned, do you know the PR number?

Thank you
:slight_smile:

@TheGardenMonkey, thanks for the integration update. I just started using it, but did run into a problem, I was hoping you could help answer.

I have a Levoit Air Purified integrated through Vesync. I can see the entity with its statuses and can turn it off and on. However there is no parent device. This means I can not assign it to a room, for distinguishing to a voice assistant which fan I want to turn on, nor is the data sufficient to organize dashboards by room.

There’s a thread on Reddit, where someone else had the same symptoms.

Should there be a parent device? Is there anything I can do in the config to create one? Or does this need some sort of enhancement?

Thanks

Sorry for the late responses, been caught up at work…

I will take a look on the “parent” / “room assignment”. I never use the room stuff, I am not sure why, but I really just never took to time to understand how they are useful, but I will try to figure that out by this weekend.

@nosuch regarding the “auto” that is still an open issue: https://github.com/home-assistant/architecture/issues/127

Hello,

I am running a Core-2021.1.5 HA and I followed the instruction (https://github.com/markperdue/pyvesync) and getting following message. I am not able to see the device either in HA.
Could anyone please help me with this? Huge thanks in advance.

SwitchDevice is deprecated, modify VeSyncSwitchHA to extend SwitchEntity
6:41:09 PM – Switch (WARNING)
Unknown device Core200S
6:41:09 PM – /usr/local/lib/python3.8/site-packages/pyvesync/vesync.py (WARNING)

Hey guys!

I am having trouble getting this to work. Perhaps someone had the same issue.

I can see my Levoit 131 on H-A, but controls and status are all not working: image

I also get this when trying to reload the integration:

 2021-02-01 16:32:14 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry [email protected] for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
    result = await component.async_unload_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 78, in async_unload_entry
    return await hass.data[DOMAIN].async_unload_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!

Using Levoit 131 Air Purifier – Using HA Core 2021.3, I can see the “Screen status” state, but I want to control the display (e.g., turn it off). Is this possible?

Did you ever get the display on/off to work?

It does not look like the VeSync integration for the Levoit 131 Air Purifier supports turning the display on/off. Only one entity shows up on the integration — its for the fan speed (and on/off).