{{ _('MQTT Overview') }}

{{ _('Overview of the MQTT configuration and enabled forwards.') }}

{{ _('Status') }}

{% if configured %} {{ _('MQTT is configured') }} {% else %} {{ _('MQTT is not configured') }} {% endif %}

{% if reachability is not none %} {% if reachability %} {% else %} {% endif %} {% elif reachability_error %} {% endif %}

{{ _('Configuration') }}

{{ _('MQTT Broker') }}
{{ mqtt_config.broker or '–' }}
{{ _('Port') }}
{{ mqtt_config.port or '–' }}
{{ _('Username') }}
{{ mqtt_config.user or '–' }}
{{ _('Password') }}
{{ mqtt_config.password or '–' }}
{{ _('Topic prefix') }}
{{ mqtt_config.topic_prefix or '–' }}

{{ _('Example: View all messages with {command}', command='mosquitto_sub') }}

{{ _('Run the following command on a machine with mosquitto-clients installed to view all messages on the configured topic.') }}

{{ mosquitto_example }}

{{ _('Wallboxes with MQTT forwarding') }}

{% if wallbox_error %} {% endif %} {% if wallboxes %}
{% for wallbox in wallboxes %} {% endfor %}
{{ _('Wallbox') }} {{ _('Source URL') }} {{ _('Backend target') }} {{ _('Activity') }}
{{ wallbox.station_id or '–' }} {{ wallbox.source_url or '–' }} {{ wallbox.ws_url or '–' }} {{ wallbox.activity or '–' }}
{% else %}

{{ _('No wallboxes with MQTT forwarding found.') }}

{% endif %}