Add humidity condition#166358
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Pull request overview
Adds a new experimental (Home Assistant Labs) condition provider to the humidity system integration so automations can evaluate relative humidity thresholds across supported entity domains.
Changes:
- Introduces
humidity.valuecondition backed bymake_entity_numerical_conditionwith support forsensor,number, and humidity attributes onclimate/humidifier. - Adds UI schema/strings/icons for the new condition, including
any/allbehavior selection. - Adds a new test module covering the condition behavior for sensors, climates, and humidifiers (behind the labs feature flag).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/humidity/condition.py |
Implements humidity.value condition across multiple domains via domain specs and unit validation. |
homeassistant/components/humidity/conditions.yaml |
Defines the condition schema (targets, behavior selector, above/below number-or-entity fields). |
homeassistant/components/humidity/strings.json |
Adds translations for the new condition and selector options. |
homeassistant/components/humidity/icons.json |
Adds an icon mapping for the new condition. |
homeassistant/components/humidity/__init__.py |
Updates integration description to include conditions. |
homeassistant/components/automation/__init__.py |
Registers humidity as an experimental condition platform (labs-gated). |
tests/components/humidity/test_condition.py |
Adds tests for condition gating and behavior for supported domains. |
emontnemery
left a comment
There was a problem hiding this comment.
LGTM, thanks @justanotherariel 👍
Breaking change
Proposed change
SSIA
Type of change
Additional information
humidityconditions #164161humidity.valuecondition #164221Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: