Install the module, get a token and send a first command.
Read, command and watch entities over HTTP or MQTT with the same calls.
Announce entities through MQTT discovery and answer Home Assistant's commands.
What the client reads, which topics it needs, and its limits.
Call Home Assistant's APIs directly and subscribe to events.
Reconnects, errors that have no caller, ordering and broker limits.
Fake Home Assistant above the wire or at it.