Optional
onConnect: (client: MqttClient) => voidProtected
attributesProtected
Optional
availabilityProtected
configReadonly
entityProtected
entityProtected
Readonly
settingsProtected
stateProtected
wroteProtected
loggerProtected
mqttProtected
_state_Protected
debugEmits an event without waiting for the listeners to finish.
Protected
initRegister the entity within Home Assistant
Optional
event: EventNameThis method will throw an error if the availability topic is not set
Generate a device trigger event
Unregister the entity from Home Assistant
Writes the configuration to the MQTT broker
Implements an MQTT Device Trigger for Home Assistant discovery