ProtectedattributesProtected OptionalavailabilityProtectedconfigReadonlyentityProtectedentityProtected ReadonlysettingsProtectedstateProtectedwroteProtectedloggerProtectedmqttProtected_state_ProtecteddebugEmits an event without waiting for the listeners to finish.
ProtectedgenerateProtectedinitRegister the entity within Home Assistant
Optionalevent: EventNameThis method will throw an error if the availability topic is not set
Set binary sensor to off *
Set binary sensor to on *
Unregister the entity from Home Assistant
Update MQTT sensor state
Writes the configuration to the MQTT broker
Static[has
Implements an MQTT binary sensor for Home Assistant discovery