Moisture
This integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides automation triggers and conditions for binary sensors, sensors, and number entities with device class moisture. There are no configuration options for this integration.
Moisture and humidity
The moisture and humidity integrations both work with water, but they apply to different aspects:
-
Moisture describes water in or on a surface. It covers wet/dry detection (such as a leak sensor reporting water under a sink) and the moisture content of materials (such as a soil sensor reporting how wet the soil in a plant pot is). Moisture sensors come in two shapes:
-
Binary moisture sensors (
binary_sensorentities with the moisture device class) report only wet or dry, like a water leak sensor. -
Numerical moisture sensors (
sensorentities with the moisture device class) report a moisture content as a percentage, like a soil moisture probe.
-
Binary moisture sensors (
- Humidity describes water vapor in the air. It’s reported as a relative humidity percentage by climate devices, humidifiers, weather sensors, and dedicated humidity sensors. For automations based on humidity, use the Humidity integration instead.
If you’re reacting to water in or on a surface (a leak, soil, a sponge), use the moisture triggers and conditions. If you’re reacting to how damp the air feels in a room, use humidity.
List of triggers
The Moisture integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following triggers. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Moisture content changed (
moisture.changed) Triggers after one or more moisture content values change. -
Moisture cleared (
moisture.cleared) Triggers after one or more moisture sensors stop detecting moisture. -
Moisture content crossed threshold (
moisture.crossed_threshold) Triggers after one or more moisture content values cross a threshold. -
Moisture detected (
moisture.detected) Triggers after one or more moisture sensors start detecting moisture.
For an overview of every trigger across all integrations, see the triggers reference.
List of conditions
The Moisture integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following conditions. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Moisture is detected (
moisture.is_detected) Tests if one or more moisture sensors are detecting moisture. -
Moisture is not detected (
moisture.is_not_detected) Tests if one or more moisture sensors are not detecting moisture. -
Moisture level (
moisture.is_value) Tests if a moisture content value is above a threshold, below a threshold, or in a range of values.
For an overview of every condition across all integrations, see the conditions reference.