Table of Contents

Class LightState

Namespace
HaMqttDiscoverable.Entities
Assembly
HaMqttDiscoverable.dll

The JSON body used for both state updates and commands under Home Assistant's MQTT JSON light schema.

public sealed class LightState
Inheritance
LightState
Inherited Members

Properties

Brightness

Brightness, from 0 to BrightnessScale (255 by default). Null when not reported/changed.

[JsonPropertyName("brightness")]
public int? Brightness { get; set; }

Property Value

int?

State

"ON" or "OFF".

[JsonPropertyName("state")]
public string State { get; set; }

Property Value

string