{% set state = device.current_state %} {% set controllable = device.is_controllable %} {% set is_bound = device.board is not none %}
{{ device.name }}
{% if device.description %}
{{ device.description }}
{% endif %}
{% if device.area %} {{ device.area }} {% endif %} {{ device.device_class | capitalize }} {% if is_bound %} {{ device.board.name }} {% if device.channel_label %}· {{ device.channel_label }}{% endif %} {% else %} Unbound {% endif %} {% if device.app_id %} {{ device.app_id }} {% endif %}
{% if not is_bound %}Virtual{% else %}{{ device.state_label }}{% endif %}
{% if controllable and is_bound %} {% endif %} {% if current_user.is_admin() %}
{% endif %}