ProtectedattributesProtected OptionalavailabilityProtectedconfigReadonlyentityProtectedentityProtected ReadonlysettingsProtectedstateProtectedwroteProtectedloggerProtectedmqttProtected_state_Set brightness of the light
Set the color of the light
ProtecteddebugEnable an effect of the light
Emits an event without waiting for the listeners to finish.
ProtectedinitProtectedpublishRegister the entity within Home Assistant
Optionalevent: 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