MQTT devices
MQTT lets M2C2 subscribe to telemetry (temperature, motion) and publish commands (relay on/off) through a broker such as Mosquitto.
Broker settings
- Open Settings → Smart Home → MQTT.
- Enter host, port (usually
1883or8883for TLS), username/password. - Set client ID unique on your network (
m2c2-mirror). - 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
- Add a sensor tile — topic
sensors/lounge/temperature, payload JSON path$.valueif applicable. - Add a switch tile — command topic
actuators/plug/cmd, payloadON/OFFper 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?