Class NumberConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for a Number entity: a numeric value that can be read and set.
public sealed class NumberConfig : EntityConfig
- Inheritance
-
NumberConfig
- 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
Max
The maximum value. Defaults to 100.
[JsonPropertyName("max")]
public double? Max { get; set; }
Property Value
Min
The minimum value. Defaults to 1.
[JsonPropertyName("min")]
public double? Min { get; set; }
Property Value
Mode
How the number should be displayed: "auto" (default), "box", or "slider".
[JsonPropertyName("mode")]
public string? Mode { get; set; }
Property Value
Step
The step between selectable values. Defaults to 1.
[JsonPropertyName("step")]
public double? Step { get; set; }
Property Value
UnitOfMeasurement
The unit of measurement of the value, e.g. "%".
[JsonPropertyName("unit_of_measurement")]
public string? UnitOfMeasurement { get; set; }