Class CoverConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a Cover entity: a blind, garage door, shade, etc. that can be opened/closed/stopped, optionally with position and tilt.
public sealed class CoverConfig : EntityConfig
- Inheritance
-
CoverConfig
- 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
PayloadClose
The payload sent to close. Defaults to "CLOSE".
[JsonPropertyName("payload_close")]
public string PayloadClose { get; set; }
Property Value
PayloadOpen
The payload sent to open. Defaults to "OPEN".
[JsonPropertyName("payload_open")]
public string PayloadOpen { get; set; }
Property Value
PayloadStop
The payload sent to stop mid-movement. Defaults to "STOP".
[JsonPropertyName("payload_stop")]
public string PayloadStop { get; set; }
Property Value
PositionClosed
The position value meaning fully closed. Defaults to 0.
[JsonPropertyName("position_closed")]
public int PositionClosed { get; set; }
Property Value
PositionOpen
The position value meaning fully open. Defaults to 100.
[JsonPropertyName("position_open")]
public int PositionOpen { get; set; }
Property Value
StateClosed
The state value meaning "closed". Defaults to "closed".
[JsonPropertyName("state_closed")]
public string StateClosed { get; set; }
Property Value
StateClosing
The state value meaning "closing" (in progress). Defaults to "closing".
[JsonPropertyName("state_closing")]
public string StateClosing { get; set; }
Property Value
StateOpen
The state value meaning "open". Defaults to "open".
[JsonPropertyName("state_open")]
public string StateOpen { get; set; }
Property Value
StateOpening
The state value meaning "opening" (in progress). Defaults to "opening".
[JsonPropertyName("state_opening")]
public string StateOpening { get; set; }
Property Value
StateStopped
The state value meaning "stopped" partway. Defaults to "stopped".
[JsonPropertyName("state_stopped")]
public string StateStopped { get; set; }
Property Value
SupportsPosition
When true, this cover reports (and, via PositionCommandReceived, accepts) a 0-100 position rather than just open/closed.
[JsonIgnore]
public bool SupportsPosition { get; set; }
Property Value
SupportsTilt
When true, this cover supports independent tilt control (e.g. venetian blinds).
[JsonIgnore]
public bool SupportsTilt { get; set; }
Property Value
TiltClosedPosition
The tilt value meaning fully closed. Defaults to 0.
[JsonPropertyName("tilt_closed_value")]
public int TiltClosedPosition { get; set; }
Property Value
TiltMax
The maximum tilt value. Defaults to 100.
[JsonPropertyName("tilt_max")]
public int TiltMax { get; set; }
Property Value
TiltMin
The minimum tilt value. Defaults to 0.
[JsonPropertyName("tilt_min")]
public int TiltMin { get; set; }
Property Value
TiltOpenPosition
The tilt value meaning fully open. Defaults to 100.
[JsonPropertyName("tilt_opened_value")]
public int TiltOpenPosition { get; set; }