[vesync] Set the night light on Levoit Air Purifiers

Although pyvesync allows to set the night light on Levoit Air Purifiers (e.g. Core 200s), the HA vesync integration ignores this setting when turning on the device.

Please allow the nigh light value (‘on’ | ‘dim’ | ‘off’) to be set when turning it on.

Yeah, this would be really great. I have a Levoit 131S which works fine with HA but my partner constantly unplugs the thing in the night because of the light, be great if HA could control the display on/off as the vesync app can.

Thanks

I’m working on updating this integration (on the shoulders of others).

There is currently a bug in the main Python Library wrt Night Light, but once that is fixed the night light should work. There is a fix required for ensuring all the fans listed in the main Python Library do work with the HA integration. As I don’t have a fan, I’ll not be able to test it.

I have a test repo and created a new topic. VeSync development particularly for Levoit Humdifiers

Hi - wondering if there have any further developments around the night light functionality?

Any word on the night light capability…?

Try this custom component.

Hello I have VeSync integration installed but the lighting support (it has two modes) does not show us. the only thing the integration allows is speed control and filter status display. Has anything changed? or are there plans to upgrade in the future? Model Levoit core 200s

Keep an eye on this recently created pull request, looks like someone’s looking to specifically implement this! Vesync Display Switch Feature by cdnninja · Pull Request #137493 · home-assistant/core · GitHub

That PR is for display on / off. However the code has been refactored so night light switch is easy to add. Plan is waiting for that to get merged before another PR for night light.

1 Like

Actually just remembered. This was added a few days ago here:

Add night light brightness level setting to VeSync by iprak · Pull Request #137544 · home-assistant/core

Should be in 2025.3.

Hi,
is this already mainlined? I just tried this on a Levoit Vital 100s and when I change the value of “Night light level” it does nothing and when I re-open the settings “Night light level” the value is back to the previous value. (But perhaps I am doing it wrong?)

I am currently on these versions:

  • Core 2025.4.2
  • Supervisor 2025.04.0
  • Operating System 15.1
  • Frontend 20250411.0

Looks like it’s live now in 2025.6.1 (via this PR).

That said @cdnninja, I just upgraded to that version and toggling the Display control and it simply dumps a generic “An error occurred while turning [on/off],” but only when toggling the Display feature. Turning the purifier itself on/off still works fine.

For reference, this is an LV-PUR131S.

Edit: Looked a little deeper in logs and found this, if it helps. Turning the whole purifier on/off did work most of the time, there were a few failures. The new display toggle, however, never ever did work for me since the upgrade.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:303
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 1:44:51 PM (18 occurrences)
Last logged: 1:55:28 PM

[546529546528] Error during service call to switch.turn_on: An error occurred while turning on.
[546533136384] Error during service call to fan.turn_on: An error occurred while manual mode.
[546491448864] Error during service call to switch.turn_off: An error occurred while turning off.
[546491448864] Error during service call to switch.turn_on: An error occurred while turning on.
[546491448864] Error during service call to fan.turn_on: An error occurred while manual mode.
1 Like

In addition to the display toggle not working, coinciding with that upgrade to 205.6.1, I noticed that the speed controls don’t work at all anymore except to toggle the purifier on and off. So, if you set it to high, medium or low, it just turns it on to the last setting and not to the speed you requested in HA. :disappointed:

@cdnninja are you noticing the same issues in the newer version?

Following up (since I cannot edit my last comment)… I found the cause of the fan speed bug and created an issue here: VeSync: Fan controls do not work on LV-PUR131S (potentially other models) · Issue #147252 · home-assistant/core · GitHub

Just seeing this thread now. I don’t get email notifications on here for some reason. The fan control items should be fixed with the PR I created.

I will do a lap around the display side. Last time I tested was okay.

Ah yes, the display side. I had forgot it does fail on just that model(131). I had opened this as it is a library issue not HA:

fix: 131s display by cdnninja · Pull Request #305 · webdjoe/pyvesync

Display state works in my re-write version but that needs a good bit more time before released so I reopened the PR for webdjoe to review.