Readonly
clientReadonly
loggerReadonly
manualProtected
Readonly
messageReadonly
mqttInternal
This method adds a message callback to the manager Internally, our message callback listens to all messages, and ignores the ones that are not registered.
This method adds a connect callback to the manager
It will be called when the client connects to the broker.
If the client is already connected, it will be called immediately, and a potential error will be emitted as error
event on the client.
This is not an elegant solution, but async constructors don't exist in JS.
Get all currently registered discoverable entities
Internal
This method registers a discoverable entity.
It's called in Discoverable
constructor, and not intended to be called by the user.
Delete all discoverable from Home Assistant
You need to call this method before disconnecting from the broker.
AggregateError
will be thrown if any of the unregistering fails.
Static
withCreates a new instance of the HaDiscoverableManager from properties.
This class manages everything related to the discoverable entities.