Homex.Manager (homex v0.1.0)
View SourceCentral manager for broker and entities.
The mananger is responsible to manage the communication with the MQTT broker and keeps track of all registered entities.
Summary
Functions
Adds multiple modules to the entities and updates the discovery config, so that Home Assistant also adds the entities. Returns a list of started modules.
Adds a module to the entities and updates the discovery config, so that Home Assistant also adds this entity.
Returns a specification to start this module under a supervisor.
Let's you publish additional messages to a topic
Removes a registered module from the entities and updates the discovery config, so that Home Assistant also removes this entity.
Types
Functions
Adds multiple modules to the entities and updates the discovery config, so that Home Assistant also adds the entities. Returns a list of started modules.
Adds a module to the entities and updates the discovery config, so that Home Assistant also adds this entity.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec connected?() :: boolean()
@spec publish(String.t(), binary() | map(), [pubopt()]) :: :ok | {:error, Jason.EncodeError.t() | Exception.t()}
Let's you publish additional messages to a topic
Removes a registered module from the entities and updates the discovery config, so that Home Assistant also removes this entity.