Hi @formatBCE it does, it took a while to appear i dont know why but its working as intended
Oh, ok. Levoit API sometimes is a bit laggy.
Glad it works.
Are you planning on adding this to the official VeSync integration?
Maybe at some point.
Too many moves to do for pull-request. Have no time for all the formalities.
Hi, I am new here and into home assistant.
Your Intergration worked well for my new Levolit 300S Classic Humidifier, and I can toggle on/off, display on/off and night light on/off. But I do not see a mode selection or sensor - readout like humidity. Do I need to setup a sensor template for that in the config? And how? I got 1 integration with 3 entities, but nothing more. Any help appreciated. Thanks in advance Marcus4Aspern
Hello, and welcome to big and wonderful world of HomeAssistant!
Mentioned settings are not separate entities, but humidifier entity properties instead.
They can be changed in automations, via calling, e.g., service âhumidifier.set_modeâ.
Also you may add humidifier to Lovelace, and if youâll click on it there, you will see UI like on screenshot.
I have been playing around with this further to see if I can integrate the Core 300s. I had a couple of questions - hoping you can help.
-
I managed to get my Core300s working but the integration adds my purifier as an entity rather than device - is that normal?
-
I would also love to be able to control both the child lock and display. Do you know how I can expose these controls to HA? Looking at the docs for Core300s, I can pull both in the attributes section via the below but not sure how to add the controls.
VeSyncAir300S400S.display_state()
- Return the state of the display (True=On/False=off)
VeSyncAir300S400S.child_lock()
- Return the state of the child lock (True=On/False=off)
- As per the docs, assuming the âair_qualityâ is measured in PM 2.5 - ug/m3? Do you know how I could get that to expose the measurement as a sensor? I am also using the Dyson component and it exposes the pm2.5/10 as sensors which are useful.
Hi!
I got answer for one of your questions:
Basically every device in official VeSync integration is created as single entity. I intentionally created device for Classic300S humidifier, because I decided it a better way to hold all related entities.
However, I didnât change existing implementations, hence - theyâre just entity-based.
On other questions - I guess, pyvesync library developer is the right person to ask. All functionally in HA integration is just based on pyvesync capabilities.
E.g. on display/child lock - I see there getters, but no setters. That means, they cannot be turned on/off, you just can see their current state. (And, probably, they are present in HA as state arguments.)
Thanks. I will reach out to the pyvesync dev regarding the other questions.
Asking as I am also interested to learn as I have been playing around with it yesterday. How would I change this form an entity to device? Is that something that needs to be controlled from the pyvesync side?
For the getters, I assume that it is these for example
VeSyncAir300S400S.display_state()
- Return the state of the display (True=On/False=off)
But could these not be used as the setters?
VeSyncAir300S400S.turn_on_display()
Turn display on
VeSyncAir300S400S.turn_off_display()
Turn display off
-
Check out HA_VeSync_Classic300s/humidifier.py at 4f66448d7de604edd62326cf67b517b2fdcf32f7 · formatBCE/HA_VeSync_Classic300s · GitHub - this config should be added to each entity, if you want it to be part of device.
-
Youâre right, there are setters too. Then you can create switch entities for them. Check this:
- HA_VeSync_Classic300s/common.py at 4f66448d7de604edd62326cf67b517b2fdcf32f7 · formatBCE/HA_VeSync_Classic300s · GitHub here is example of adding several entities for one device
- in corresponding entity type classes, find similar entities and define classes for your entities based on that.
Voila, it should work!
How would you integrate the changes in a container version as I do not see it in any of the home assistant directories? Is there a document somewhere that explains this?
I have a 300s purifier that does not show up in the official integration. My 131S works fine, but the 300s is still not showing up.
My fork should work with 300s.
But to try it, youâll have to download the code from my repo and put it manually to custom_components folder. Then after HA restart, remove official integration and add mine instead. Should work fine.
Andrii,
Downloaded the code, added the username and password to configuration.yaml / secrets.yaml and it popped into the integrations after a restart. Weirdly it shows my username as the title to the integration. Maybe there is another attribute to add to get that to stop happening.
Time to dig a little deeperâŠIâm getting more familiar with the peculiarities of HA every day.
Hmm, as far as I can say, youâd want to add integration via config flow (basically, remove any mentions from text configs, go to Configuration->Integrations, find VeSync there and add it there).
Itâs working great, @formatBCE. Thanks a lot!
Just one thing that Iâve been trying to work it out, with the Core 300S. Still no preset mode: auto, fot that model?
The fanâs service (set preset mode), only seems to change for âsleepâ.
Hi!
Yes, there was a misunderstanding from start, and I didnât add auto mode.
Itâs easy to do, since itâs supported. I will do it, once have time. Or you may do it yourself in file fan.py (just copy from 400S instead of 200s, like I did)
Done. Thanks!
Thank you very much for working on this! I just got one of these for a gift and am excited to be able to control it and use in automations.
Very very new to home assistant (less than 3 months), not a developer. Iâve read this thread and multiple others threads trying to figure out how to install this for a 400s Air purifier but have had no luck.
Iâm unable to get past the first step⊠âpip install pyvesyncâ
My version of home assistant is on a home assistant blue rasberry pi.
I tired copying the extracted zip file from GitHub - webdjoe/pyvesync: pyvesync is a python library to manage Etekcity & Levoit smart devices to my custom components directory and that didnât work.
I tried the default VeSync integration (just for fun) but that didnât work as it doesnâtâ support the 400S. Tried to google the pip install and I know itâs a python command for installing packages but thatâs it.
Any help for this newb to get past step one would be greatly appreciated, thanks!