powerbar.ti (4.0.1)
For the API vist '/powerbars' and '/groups' | A project brought to you by Piele & Mattronix for the code vist
code.techinc.nl
Power Outlets take up to 6 Seconds to Toggle due to consistency over speed (double clicking issue is resolved by this delay)
Search
{% for powerbar in powerbars.items() %}
{{powerbar[1].name}}
{% for outlet in powerbar[1].outlets.items() %} {% if not outlet[1].password %}
{{outlet[1].name}}
Outlet: {{outlet[0]}}
{% if outlet[1].state == "on" %}
On
{% else %}
Off
{% endif %}
{% if outlet[1].state == "on" %}
{% else %}
{% endif %}
{% endif %} {% endfor %}
{% endfor %} {% if all_groups %}
Groups
{% for group in all_groups %}
{{group.name}}
Off
On
{% endfor %}
{% endif %}