MQTT Client
The MQTT Client skill gives your AI agent the ability to communicate with any MQTT broker, enabling direct integration with IoT sensors, actuators, and smart home hubs that use the MQTT protocol. Connect to Mosquitto, EMQX, HiveMQ, or any compatible broker using host, port, credentials, and optional TLS settings. Subscribe to one or multiple topic patterns using wildcards (# and +) and receive live message streams directly in the agent session. Publish messages to any topic with configurable QoS levels (0, 1, or 2) and optional retained flag. The skill parses JSON and plain-text payloads automatically, making sensor readings human-readable without manual decoding. Retain message history per topic within the session for trend analysis. Use it to build lightweight automation logic: 'when the temperature sensor on kitchen/temp exceeds 28°C, publish an alert to home/alerts and log the event'. Works as the communication backbone for the Zigbee Control and Home Assistant skills, and integrates with the Webhook skill to bridge MQTT events to HTTP endpoints.
Installation
clawhub install mqtt
Install: clawhub install mqtt