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

I am new to the home assistant, so my question is quite a newbie.

How do I update the config_flow file? Just replace ‘CONF_USERNAME’ and ‘CONF_PASSWORD’ with the actual info throughout the text’?

The config flow is the popup that opens up when you do Add IntegrationVeSync. It will show the following dialog box


You’re not supposed to update it inside the code.

Hi, is this custom integration safe to run alongside the official one, or should I uninstall that first, before installing this one?

This custom integration is supposed to override the official one. But to be on the safe side, I would do it in this order:

  1. Uninstall official integration
  2. Restart HA to cleanup entities
  3. Install the custom one through HACS
  4. Restart HA to make it available
  5. Configure through the Integration UI.
1 Like

That worked perfectly, thanks.

Works like a charm!

Anyone else having issues lately with the custom integration + the 300S? I think the API is acting up or something, it used to respond right away. Now it either doesn’t at all, or does after a LONG delay.

2022-09-30 13:54:12.341 DEBUG (SyncWorker_7) [pyvesync.helpers] [post] calling '/cloud/v2/deviceManaged/bypassV2' api
2022-09-30 13:54:14.084 DEBUG (SyncWorker_11) [pyvesync.helpers] HTTPSConnectionPool(host='smartapi.vesync.com', port=443): Read timed out. (read timeout=5)
2022-09-30 13:54:14.084 DEBUG (SyncWorker_11) [pyvesync.vesyncfan] Error getting status of Humidifier

It does seem reachable, maybe something changed on their end:

/config # host smartapi.vesync.com
smartapi.vesync.com is an alias for vesyncappapi-1834200178.us-east-1.elb.amazonaws.com.
vesyncappapi-1834200178.us-east-1.elb.amazonaws.com has address 34.197.50.0
vesyncappapi-1834200178.us-east-1.elb.amazonaws.com has address 34.206.253.195
vesyncappapi-1834200178.us-east-1.elb.amazonaws.com has address 174.129.159.121
vesyncappapi-1834200178.us-east-1.elb.amazonaws.com has address 52.207.121.218
/config # ping smartapi.vesync.com
PING smartapi.vesync.com (174.129.159.121): 56 data bytes
64 bytes from 174.129.159.121: seq=0 ttl=229 time=15.241 ms
64 bytes from 174.129.159.121: seq=1 ttl=229 time=14.738 ms

Just checked my devices - everything is working…

Do you have a 300S humidifier?

Yes, and I’m that person who wrote HA part of it’s integration :slight_smile:

It works good.

1 Like

Ok, reporting back… I think it’s my Ubiquiti gear to blame. I forced the Humidifier to use one of my NanoHD access points instead of the Dream Machine, and it started working. Has to be a bug on their side. Thanks for looking … and the awesome integration!!!

2 Likes

I just purchased a 300s but can only toggle it on/off?

Are you using the custom integration? GitHub - vlebourl/custom_vesync: Custom VeSync component for Home Assistant

Mine looks like this. (customized)

image

2 Likes

I’m using the custom integration

Am I missing something lol

Edit:
Reading above is interesting as I have it connected to my Unifi AP, NOT my Virgin Media Hub.

That’s showing you have their Air Purifier, my screenshot, and this thread is about the Humidifier.

Also you linked the stock integration, NOT the custom one I linked.

2 Likes

Also, what is Virgin Media Hub and how it corresponds to this topic?

Sorry, but did you sleep well? :slight_smile:

1 Like

Sorry, I totally missed the humidifier!!

The virgin media hub, I was mentioning I also connected to my Unifi AP point which could be causing the issues.

I also have ESPHome devices which are very unstable on my Unifi AP.

Just curious if those were linked.

I don’t think I’m keeping on topic so thanks all.

1 Like

Good afternoon, I have a levoit dual 200S humidifier and it does not appear when integrating vesync in home assistant, I have to do something special, I have tried with the custom versions that appear in this thread but nothing.

Probably, this fork will help:

Is it possible to disable the 5% delay?!