Skip to content

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.

  1. 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).
  2. Install it and restart Home Assistant.
  3. Go to Settings → Devices & services → Add integration → ConnectMQ.
  4. 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.)
  5. 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:

FieldValue
Brokerbroker.connectmq.com
Port8883
Username / PasswordFrom MQTT Connection Settings
Advanced → Client ID<issued client ID>_homeassistant
Advanced → Broker certificate validationAuto
Advanced → MQTT protocol5

Use your topics ​

yaml
# 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: temperature

Connections 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.

Fully managed MQTT broker for connected devices.