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