Table of Contents

Class SceneConfig

Namespace
HaMqttDiscoverable.Entities
Assembly
HaMqttDiscoverable.dll

Configuration for a Scene entity: a stateless trigger, like Button but grouped under Home Assistant's "scene" domain.

public sealed class SceneConfig : EntityConfig
Inheritance
SceneConfig
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

string

PayloadOn

The payload sent when the scene is activated. Defaults to "ON".

[JsonPropertyName("payload_on")]
public string PayloadOn { get; set; }

Property Value

string