Add support for Levoit Classic 300S Smart Ultrasonic Top-Fill Cool Mist Humidifier in the VeSync integration

Hi, thanks for your work on this!

I added my core 300s. Could this be added to the official integration? I see that core 200s is there.

This will require more time, than I can effort right now (rules of pull-request to HA are pretty strict).
I will try to do it at some point though.

Thanks! In the meantime, this is what I see in HA for my Core 300s.

Within the VeSync app, I can put it on Auto and Sleep as well as turn on/off the lights (display) on top of the machine. Do you know if that is possible with this integration? I don’t see it.

I am also getting consistent errors in the logs such as the below:

Update for fan.bedroom_purifier fails
12:59:26 – (ERROR) VeSync-FormatBCE (custom integration)

Hi!
I didn’t dig deep into this device configuration - it is done similar to Core200S. Check that “Preset mode” drop-down - you should see some modes there (auto/sleep).
What about night light - i guess, the only device that it works for now in HA, is Classic 300S humidifier. I wrote that support by my own, as i have it, and can test its work.
Unfortunately, i don’t have Core 200/300/400S, so i cannot advance it.

Regarding error - it’s pretty common error for this integration - sometimes VeSync API is lagging a lot. Nothing to do right now with it, but it shouldn’t affect the work drastically.

Thanks. On the present section there is just ‘sleep’.

Yeah, case is, that Core300S was copied by pyvesync developer from Core200S (Actually, they’re using same code inside). So, as well as Core200S, the auto mode wasn’t added there, although device supports it.
You may check this link to pyvesync Wiki: https://github.com/webdjoe/pyvesync#levoit-purifier-core200s300s-methods-and-properties
This means, even if i will add MODE_AUTO to supported modes in this integration, it won’t work, as there’s no such possibility for library.

You can try change this line:

Make it same as for Core 400S, and re-add integration. Modes will be there, but auto mode won’t work.

Thanks. I see someone added it to the official integration

1 Like

@formatBCE, I have been using your VeSync integration for a week now and it is working great. Thank you very much!

The Core / Classic mixup in this thread is really confusing. Apparently, core x00S has made it into the official integration but CLASSIC 300S has not, which is really unfortunate. Is there anything that can be done to push this onward? I saw that there was one attempt to get it merged but I got canceled (stale).

Hi!
Yes, it would be great to merge changes to main integration. There’s a lot of effort though to test it according to HA guidelines.
I promised myself to do it, but can’t find time for it…

So this is in my shortlist. :slight_smile:

I just sent a PR to pyvesync to add support for the Levoit Dual 200S humidifier. It seems identical to the Levoit Classic 300S humidifier, except there’s no night-light.

Once this PR lands, I’m happy to update the HA vesync integration to support it.

1 Like

Please let me know, if you want me to do it, or you do it yourself.

That would be absolutely incredible. Thank you very much for you effort!

@formatBCE, thank you (again) also! I hope you two can figure this out!

Has there been any changes with the Core300’s support?

I saw there were some changes (pyvesync): turn on/off, child lock; but still no update on air quality, nor auto mode.

Can someone confirm it, please? Is it still C200’s copy?

Pyvesync with Core300S support is at pyvesync/src/pyvesync at master ¡ webdjoe/pyvesync ¡ GitHub

I copied to my pyvesync directory and previously edited fan.py in integration directory to support 300S and 400S.

1 Like

This is awesome. I saw your PR merged already, any updates on the HA vesync integration update? Thanks so much!

Hello, could you please help to update the integration to support dual 200? Thanks :blush:

Hi format if possible and easy could you update with the latest version? Its now possible to integrate with dual 200 humidifier :grin:.

Not sure if Ben will be able to help on this, whatever works for you and him.

You may try my fork, Core300S and Core400S are added there
@unholyhimura Added support for Dual200S: GitHub - formatBCE/HA_VeSync_Classic300s

1 Like

Thank you @formatBCE , really appreciate. I understand the naming convention is not the best for Levoit devices and the fact they are not keeping the documentation up to date in pyvesync does not help us either to understand which device is supported. Glad the updates were made, It’s all working correctly now!

I checked the changes in git to see what I missed: two lines of code :sweat_smile: need to learn more how to program to be able to help as well.

Have good holidays!

My pleasure.
So this humidifier doesn’t have switchable display too?
I will remove display switch entity to avoid errors.