Table of Contents

Class DateTimeEntityConfig

Namespace
HaMqttDiscoverable.Entities
Assembly
HaMqttDiscoverable.dll

Configuration for a DateTimeEntity: a combined date and time value that can be read and set.

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

Timezone

The timezone Home Assistant should interpret naive (offset-less) values in. Uses an IANA timezone name, e.g. "Europe/Amsterdam". Defaults to Home Assistant's own configured timezone.

[JsonPropertyName("timezone")]
public string? Timezone { get; set; }

Property Value

string