HaDiscoveryPayload

data class HaDiscoveryPayload(val topic: String, val json: String)

A single Home Assistant MQTT auto-discovery message.

Publish json to topic so HA creates the corresponding entity automatically.

Constructors

Link copied to clipboard
constructor(topic: String, json: String)

Properties

Link copied to clipboard

the JSON payload conforming to the HA MQTT discovery specification

Link copied to clipboard

the MQTT discovery topic (e.g. homeassistant/sensor/<vin>/battery_level/config)