{% extends "layout.html" %} {% from "macros.html" import alert_dismiss with context %} {% block content %}

Outlets Control

Config
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {{ alert_dismiss({'alert_type': category, 'texto_alerta': message}) }} {% endfor %} {% endif %} {% endwith %}
{% for outlet in outlets %}

Switch: {{ outlet['label'] }}

{#

state: {{ outlets_state[loop.index] }}

#}
{% endfor %}


{#
#} {#
#} {#
#} {#

OUTLETS in codes_outlets.json file


(press to show/hide)
#} {#
#} {#
#} {#
#} {# {% for outlet in outlets %}#} {#

{{ outlet['label']|safe }} --> ON CODE: {{ outlet['off']|safe }}; OFF CODE: {{ outlet['off']|safe }}

#} {# {% endfor %}#} {#
#} {#
#} {% endblock %}