openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.57k forks source link

[VeSync] Add "Change mode to auto" for Air Purifier Core 300S #16456

Open icsAT opened 5 months ago

icsAT commented 5 months ago

I just got an Levoit Air Purifier Core 300S. And I am Using openHAB 4.1.1.

When I try to set fanMode to "auto" using openHAB with the VeSync-Binding I receive: Fan mode command for "auto" is not valid in the (Core200S/Core300S) API possible options manual,sleep The openHAB Documentation says the same, so the error makes sense. Works as designed.

If I use the VeSync App I am able to set the fanMode to "auto" and the value of the channel in openHAB becomes "auto", too.

Therefore I think there should be a possibility to set "fanMode" to "auto" for the Core 300S through the API and it would be great if someone could add this to the binding.

dag81 commented 5 months ago

I'll have a look when I can and compare to the latest PyVeSync revision. It was ported directly from that pyton lib, so it maybe at that point in time either no support existed, if its documented that way - that would have been the mappings originally ported over. It may be no one has reverse engineered the lib for PyVeSync for the auto functionality, that could be another reason in which case the command is unknown for what to send. I'll check as soon as I can @icsAT, just wrapping up a different binding at the moment first.