Overview
Package tag is Home Assistant's tag domain: its types and its MQTT discovery config.
Home Assistant documents the domain here:
Integration: https://www.home-assistant.io/integrations/tag/
MQTT discovery: https://www.home-assistant.io/integrations/tag.mqtt/
MQTT discovery config
type Config struct
Config is the MQTT discovery config of tag.
See: https://www.home-assistant.io/integrations/tag.mqtt/
| Field | Type | Wire key | Description |
|---|---|---|---|
Device | *ha.MQTTDeviceDetails | device | |
Encoding | *string | encoding | Default: "utf-8" |
Group | []string | group | |
Qos | *int | qos | Default: 0 |
Topic | string | topic | Required. |
ValueTemplate | *ha.Template | value_template |
func (*Config) IsMQTTDiscoverySchema()
IsMQTTDiscoverySchema marks Config as a discovery payload (ha.MQTTDiscoverySchema).