Table of Contents

Class SelectConfig

Namespace
HaMqttDiscoverable.Entities
Assembly
HaMqttDiscoverable.dll

Configuration for a Select entity: a value picked from a fixed list of options.

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

Options

The list of values the user can pick from. Required.

[JsonPropertyName("options")]
public List<string> Options { get; set; }

Property Value

List<string>