Class HumidifierConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a Humidifier entity: on/off with a target humidity, optionally with named modes.
public sealed class HumidifierConfig : EntityConfig
- Inheritance
-
HumidifierConfig
- Inherited Members
Properties
Component
The MQTT component Home Assistant should treat this entity as, e.g. sensor or
switch. Used to build the discovery topic; not part of the discovery payload itself.
public override string Component { get; }
Property Value
Modes
The list of named modes this humidifier supports (e.g. "auto", "sleep", "away"). When non-empty, a mode command/state topic pair is added - see ModeCommandReceived.
[JsonIgnore]
public List<string> Modes { get; set; }
Property Value
PayloadOff
The payload sent/expected to mean "off". Defaults to "OFF".
[JsonPropertyName("payload_off")]
public string PayloadOff { get; set; }
Property Value
PayloadOn
The payload sent/expected to mean "on". Defaults to "ON".
[JsonPropertyName("payload_on")]
public string PayloadOn { get; set; }
Property Value
TargetHumidityMax
The maximum target humidity, 0-100. Defaults to 100.
[JsonPropertyName("max_humidity")]
public double TargetHumidityMax { get; set; }
Property Value
TargetHumidityMin
The minimum target humidity, 0-100. Defaults to 0.
[JsonPropertyName("min_humidity")]
public double TargetHumidityMin { get; set; }