powerbar.ti (2.0.15)
For the API vist '/powerbars' | A project brought to you by Piele & Mattronix for the code vist
code.techinc.nl
Search
{% for powerbar in powerbars.items() %}
{{powerbar[1].name}}
{% for outlet in powerbar[1].outlets.items() %}
{{outlet[1].name}}
Outlet: {{outlet[0]}}
{% if outlet[1].state == "on" %}
On
{% else %}
Off
{% endif %}
{% if outlet[1].state == "on" %}
{% else %}
{% endif %}
{% endfor %}
{% endfor %} {% if all_groups %}
Groups
{% for group in all_groups %}
{{group.name}}
Off
On
{% endfor %}
{% endif %}