{% load custom_tags_and_filters %}

MQTT Broker Configuration

Configure the MQTT broker connection for publishing NEMO events. Only one MQTT configuration is supported.

{% csrf_token %}

Event Types

Select which NEMO events should be published to MQTT. Uncheck any you do not want sent to the broker.

A descriptive name for this MQTT configuration.

Broker Connection

The hostname or IP address of the MQTT broker.
The port number of the MQTT broker (typically 1883).
Keep alive interval in seconds (default: 60).
Unique identifier for this NEMO instance on the MQTT broker.
Username sent in the MQTT CONNECT packet. Set with broker password to disable anonymous access.
Password for broker authentication. Leave blank to keep existing password.

HMAC Message Authentication

Sign payloads with HMAC so subscribers can verify authenticity and integrity. Uses a shared secret; transport remains plain TCP.

Message Settings


Connection Management

Delay between reconnection attempts.
Maximum number of reconnection attempts (0 = unlimited).

Logging

Minimum log level for MQTT messages.
{% button type="save" value="Save MQTT Configuration" %}

Status & Recent Messages

{% if config.enabled %}
MQTT is enabled - Events will be published to the broker.
{% else %}
MQTT is disabled - No events will be published.
{% endif %} {% if recent_messages %}

Recent MQTT Messages

{% for message in recent_messages %} {% endfor %}
Topic Status QoS Sent At
{{ message.topic }} {% if message.success %} Success {% else %} Failed {% endif %} {{ message.qos }} {{ message.sent_at|date:"M d, Y H:i:s" }}
{% else %}

No recent MQTT messages found.

{% endif %}