Protected
attributesProtected
Optional
availabilityProtected
configReadonly
entityProtected
entityProtected
Readonly
settingsProtected
stateProtected
wroteProtected
loggerProtected
mqttProtected
_state_Set brightness of the light
Set the color of the light
Protected
debugEnable an effect of the light
Emits an event without waiting for the listeners to finish.
Protected
initProtected
publishRegister the entity within Home Assistant
Optional
event: EventNameThis method will throw an error if the availability topic is not set
Set light to off
Set light to on
Unregister the entity from Home Assistant
Publishes the state of the light to the state topic
Writes the configuration to the MQTT broker
Implements an MQTT light for Home Assistant discovery