Class UpdateConfig
- Namespace
- HaMqttDiscoverable.Entities
- Assembly
- HaMqttDiscoverable.dll
Configuration for an Update entity: reports available firmware/software updates, with an optional "Install" action.
public sealed class UpdateConfig : EntityConfig
- Inheritance
-
UpdateConfig
- 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
DisplayPrecision
Number of decimals to display for the update percentage. Defaults to 0.
[JsonPropertyName("display_precision")]
public int DisplayPrecision { get; set; }
Property Value
PayloadInstall
The payload published back to InstallRequested when the user clicks "Install". Defaults to "install".
[JsonPropertyName("payload_install")]
public string PayloadInstall { get; set; }
Property Value
Title
A static title for the software, e.g. "Firmware". Can also be reported per-update via Title.
[JsonPropertyName("title")]
public string? Title { get; set; }