feat: Add RGB nightlight support for VeSyncHumid200300S (LUH-O451S-WEU) #502
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds RGB nightlight control support for the
VeSyncHumid200300Sdevice class, specifically for the LUH-O451S-WEU (OasisMist 4.5L) humidifier model.This addresses missing nightlight functionality that prevents Home Assistant from creating light entities for humidifiers with RGB nightlight features. Related issue: home-assistant/core#160387
Changes
HumidifierFeatures.RGB_NIGHTLIGHTfeature flagsupports_rgb_nightlightproperty to base classset_rgb_nightlight(power, brightness, red, green, blue)methodAPI Quirks
colorSliderLocation(0-100) mapped from an 8-color gradientKnown Limitations
Testing
Tested on physical LUH-O451S-WEU device: power on/off, brightness, color changes, state refresh.