MQTT Broker Configuration
Configure the MQTT broker connection for publishing NEMO events. Only one MQTT configuration is supported.
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 %}
Status
| Bridge process (consumption loop) |
|
| MQTT broker connection |
{% if bridge_status %}
{{ bridge_status }}
{% else %}
(unknown)
{% endif %}
|
| Broker connection (DB row) updated |
(unknown)
|
| Config last updated |
{{ config.updated_at|date:"M d, Y H:i:s" }} |
| Pending queue rows |
{{ pending_queue_count }} |
{% if not config.enabled %}
When MQTT is disabled, the bridge process may still run and update its heartbeat; the broker line may stay disconnected.
{% endif %}
Diagnostics (copy)
Bridge process (consumption loop)
last_heartbeat: {% if bridge_last_heartbeat_iso %}{{ bridge_last_heartbeat_iso }}{% else %}(none){% endif %}
heartbeat_age: (unknown)
process_health: (unknown)
MQTT broker
connection: {% if bridge_status %}{{ bridge_status }}{% else %}(unknown){% endif %}
status_updated_at: (unknown)
status_age: (unknown)
MQTT target
broker_host: {{ config.broker_host }}
broker_port: {{ config.broker_port }}
client_id: {{ config.client_id }}
keepalive: {{ config.keepalive }}
clean_session: {{ config.clean_session }}
username_set: {% if config.username %}true{% else %}false{% endif %}
Config
enabled: {{ config.enabled }}
use_hmac: {{ config.use_hmac }}
retain_messages: {{ config.retain_messages }}
auto_reconnect: {{ config.auto_reconnect }}
reconnect_delay: {{ config.reconnect_delay }}
max_reconnect_attempts: {{ config.max_reconnect_attempts }}
log_level: {{ config.log_level }}
log_messages_to_db: {{ config.log_messages }}
Queue
pending_count: {{ pending_queue_count }}
oldest_pending_created_at: {% if pending_queue_oldest %}{{ pending_queue_oldest|date:"c" }}{% else %}(none){% endif %}
newest_pending_created_at: {% if pending_queue_newest %}{{ pending_queue_newest|date:"c" }}{% else %}(none){% endif %}
Plugin
version: {% if plugin_version %}{{ plugin_version }}{% else %}(unknown){% endif %}
{% if recent_queue_events %}
Recent Queue Rows (PostgreSQL)
| ID |
Topic |
Processed |
QoS |
Retain |
Created |
{% for ev in recent_queue_events %}
| {{ ev.id }} |
{{ ev.topic }} |
{% if ev.processed %}
Yes
{% else %}
No
{% endif %}
|
{{ ev.qos }} |
{{ ev.retain }} |
{{ ev.created_at|date:"M d, Y H:i:s" }} |
{% endfor %}
{% else %}
No recent MQTT queue rows found.
{% endif %}
{% if recent_messages %}
Recent MQTT Messages
| Topic |
Status |
QoS |
Sent At |
{% for message in recent_messages %}
| {{ message.topic }} |
{% if message.success %}
Success
{% else %}
Failed
{% endif %}
|
{{ message.qos }} |
{{ message.sent_at|date:"M d, Y H:i:s" }} |
{% endfor %}
{% endif %}