Home Assistant
The ConnectMQ integration for Home Assistant signs in with your ConnectMQ account, lets you pick a broker and configures Home Assistant's MQTT integration for you. It also adds usage sensors.
Option A: the ConnectMQ integration (recommended)
- In Home Assistant, open Settings → Marketplace (HACS on older versions) and search for ConnectMQ. If it is not listed yet, add the custom repository
connectmq/connectmq-homeassistant(category Integration). - Install it and restart Home Assistant.
- Go to Settings → Devices & services → Add integration → ConnectMQ.
- Sign in with your ConnectMQ e-mail and password. (Signed up with Google or LinkedIn? Set a password first with Forgot password? on the sign-in page.)
- Choose the broker. The integration sets up Home Assistant's MQTT integration with port 8883, MQTT 5, TLS and the client ID
<issued client ID>_homeassistant.
The integration only stores a refresh token, not your password. It adds sensors such as connected clients, remaining connections, session minutes used and quota used, so you can automate on your plan's limits.
Source and details: github.com/connectmq/connectmq-homeassistant.
Option B: configure MQTT by hand
Settings → Devices & services → Add integration → MQTT, then:
| Field | Value |
|---|---|
| Broker | broker.connectmq.com |
| Port | 8883 |
| Username / Password | From MQTT Connection Settings |
| Advanced → Client ID | <issued client ID>_homeassistant |
| Advanced → Broker certificate validation | Auto |
| Advanced → MQTT protocol | 5 |
Use your topics
# configuration.yaml
mqtt:
sensor:
- name: "Living room temperature"
state_topic: "home/floor1/living-room/sensor-1/telemetry"
value_template: "{{ value_json.temperature }}"
unit_of_measurement: "°C"
device_class: temperatureConnections add up
Home Assistant keeps one connection open all the time, which uses one of your plan's concurrent connections and about 43,000 session minutes a month. The Free plan's one-time 10,000 minutes therefore last about a week; use Basic or Scale for a permanent setup. See Plans & broker limits.