Add humidity control support to climate entity#141
Add humidity control support to climate entity#141mnaser wants to merge 1 commit intoapetrycki:masterfrom
Conversation
216142c to
88f3501
Compare
- Advertise existing set_humidity() via ClimateEntityFeature.TARGET_HUMIDITY - Only enable when ctSystemCapHumidification capability is present - Set humidity range to 25-65% (matching Daikin humidifier limits) - Update local state immediately after set_humidity call 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
88f3501 to
e6a841f
Compare
|
Looks great, would also close #143 – what are we waiting for? |
|
FYI I have been using this for quite sometime successfully (added automation to adjust based on outdoor temperature to avoid condensation and it's working great). |
|
I just got my thermostat hooked up to the humidifier last week. This functionality is exactly what I'm looking for. Will be trying it out this weekend! |
|
@apetrycki do you have a chance to look at this? |
| if self.thermostat.get("ctSystemCapHumidification", False): | ||
| features |= ClimateEntityFeature.TARGET_HUMIDITY |
There was a problem hiding this comment.
Curious why this "out of pattern" conditional and not amend the flag to the full SUPPORT_FLAGS list in line 216-222?
There was a problem hiding this comment.
The goal is only to advertise the feature if the unit is advertising a humidifier capability, since not all units have one integrated to them.
Cherry-picked from upstream PR apetrycki#141 by mnaser
| _attr_temperature_unit = UnitOfTemperature.CELSIUS | ||
| _attr_fan_modes = [FAN_AUTO, FAN_ON, FAN_LOW, FAN_MEDIUM, FAN_HIGH, FAN_SCHEDULE] | ||
| _attr_min_humidity = 25 | ||
| _attr_max_humidity = 65 |
There was a problem hiding this comment.
Can you explain why these are hard coded values? I haven't looked into humidity control in HA. What are these used for?


Summary
set_humidity()functionality viaClimateEntityFeature.TARGET_HUMIDITYctSystemCapHumidificationcapability is presentTest plan
🤖 Generated with Claude Code