tag

Go types for Home Assistant's tag domain: the MQTT discovery config.

Discovery config
import "github.com/taumatix/homeassistant-go/domains/tag"

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/

FieldTypeWire keyDescription
Device*ha.MQTTDeviceDetailsdevice
Encoding*stringencoding

Default: "utf-8"

Group[]stringgroup
Qos*intqos

Default: 0

Topicstringtopic

Required.

ValueTemplate*ha.Templatevalue_template
func (*Config) IsMQTTDiscoverySchema()

IsMQTTDiscoverySchema marks Config as a discovery payload (ha.MQTTDiscoverySchema).