Skip to Content

MQTT devices

MQTT lets M2C2 subscribe to telemetry (temperature, motion) and publish commands (relay on/off) through a broker such as Mosquitto.

Broker settings

  1. Open Settings → Smart Home → MQTT.
  2. Enter host, port (usually 1883 or 8883 for TLS), username/password.
  3. Set client ID unique on your network (m2c2-mirror).
  4. Test subscribe with a known topic (for example home/test).

⚠️ Warning: Never expose an unauthenticated Mosquitto broker to the public internet. Use TLS, ACLs, and VPN if remote access is required.

Map topics to tiles

  1. Add a sensor tile — topic sensors/lounge/temperature, payload JSON path $.value if applicable.
  2. Add a switch tile — command topic actuators/plug/cmd, payload ON/OFF per your device firmware.

ℹ️ Note: Payload formats differ per device — use MQTT Explorer on a laptop to sniff traffic safely during setup.

Troubleshooting

Connected but no messages
ACL denies subscribe; wrong topic case; broker bridge not publishing upstream.

Last updated on

Was this helpful?