{# This simple template derives from ``base.html``. See ``base.html`` for more information about template inheritance. #} {%- extends "base.html" %} {# Loads some of the macros included with Flask-Bootstrap. We are using the utils module here to automatically render Flask's flashed messages in a bootstrap friendly manner #} {% import "bootstrap/utils.html" as utils %} {# Inside the ``content`` is where you should place most of your own stuff. This will keep scripts at the page end and a navbar you add on later intact. #} {% block content %}
{%- with messages = get_flashed_messages(with_categories=True) %} {%- if messages %}
{{utils.flashed_messages(messages)}}
{%- endif %} {%- endwith %}

Tasmota SML Dekoder

{% if messages | length > 0 %}

Dekodierte SML Nachrichten

{%- for msg in messages %} {%- endfor %}
OBIS (hex) OBIS Name Wert Einheit Parsed
0x{{ msg.msg.obis }} {{ msg.msg.obis_short }} {{ msg.msg.name }} {{ msg.msg.value}} {{ msg.msg.unit }} {{ msg.msg.human_readable }}

Tasmota Meter Definition

Aufgrund der erkannten SML Elemente wäre dies ein Vorschlag für eine Tasmota Meter Definition.

M 1
+1,3,s,0,9600,
{% for msg in messages -%}
        {{ msg.tas }}
{% endfor -%}
{% endif %}

Empfangene Daten

Folgende Daten wurden empfangen.
{% for line in smldump -%}
{% if line in parse_errors -%}
        {{ line }}
{% else -%}
        {{ line }}
{% endif -%}
{% endfor -%}
{%- endblock %}