Class ButtonConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a Button entity: a stateless, momentary action.
public sealed class ButtonConfig : EntityConfig
- Inheritance
-
ButtonConfig
- 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
PayloadPress
The payload sent when the button is pressed. Defaults to "PRESS".
[JsonPropertyName("payload_press")]
public string PayloadPress { get; set; }