{% set devices = imp0rt('kaithem.src.devices') %} {% set util = imp0rt('kaithem.src.util') %}

{{ i.split(".",1)[-1]| escape }}

{% if obj.tagpoints[i].type in ('string','number', 'object') %}

Current

{% if obj.tagpoints[i].type in ('string', 'object') %} {% else %} {% endif %} {% elif hasattr(obj.tagpoints[i],"data_source_widget") and obj.tagpoints[i].subtype == 'mpegts' and obj.tagpoints[i].data_source_widget %} {% elif obj.tagpoints[i].subtype =="bmp" %} {% else %} Binary data tagpoint cannot be displayed. {% if obj.tagpoints[i].subtype == 'mpegts' %} If this is a video feed, you may need to set up Permissions on this device. {{ str(obj.tagpoints[i].data_source_widget)}} {% endif %} {% endif %} {% if not obj.tagpoints[i].subtype == 'mpegts' %} {% if obj.tagpoints[i].active_claim.priority > 50.5 %} Overridden: {{ obj.tagpoints[i].active_claim.name }} {% else %}
{% if (not hasattr(obj.tagpoints[i],"writable")) or obj.tagpoints[i].writable %} {% if obj.tagpoints[i].subtype == 'bool' or obj.tagpoints[i].subtype == 'boolean' %} {% elif obj.tagpoints[i].subtype == 'tristate' %} {% elif obj.tagpoints[i].subtype == 'trigger' %} {% elif obj.tagpoints[i].subtype == 'color' %} {% else %} {% if obj.tagpoints[i].max==1 and obj.tagpoints[i].min==0 %} {% endif %} {% endif %} {% else %} {% if obj.tagpoints[i].type=='number' %} {% if obj.tagpoints[i].subtype == 'bool' or obj.tagpoints[i].subtype == 'boolean' %} {% else %} {% if obj.tagpoints[i].max==1 and obj.tagpoints[i].min==0 %} {% endif %} {% endif %} {% if obj.tagpoints[i].subtype == 'tristate' %} {% endif %} {% endif %} {% endif %} {% if devices.callable(obj.tagpoints[i].active_claim.value) %} {% else %} {% endif %}
{% endif %} {% if obj.tagpoints[i].subtype == 'color' %}
{% endif %} {% endif %}