Class WaterHeaterConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a WaterHeater entity: an operating mode plus a target/current temperature.
public sealed class WaterHeaterConfig : EntityConfig
- Inheritance
-
WaterHeaterConfig
- 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 operating modes this water heater supports. Defaults to Home Assistant's standard set: "eco", "electric", "gas", "heat_pump", "high_demand", "performance", "off".
[JsonPropertyName("modes")]
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
SupportsPower
When true, a separate power on/off toggle (distinct from setting the mode to "off") is added - see PowerCommandReceived.
[JsonIgnore]
public bool SupportsPower { get; set; }
Property Value
TempInitial
The target temperature to suggest when the entity is first added.
[JsonPropertyName("initial")]
public double? TempInitial { get; set; }
Property Value
TempMax
The maximum target temperature.
[JsonPropertyName("max_temp")]
public double? TempMax { get; set; }
Property Value
TempMin
The minimum target temperature.
[JsonPropertyName("min_temp")]
public double? TempMin { get; set; }