{% set state = device.current_state %} {% set controllable = device.is_controllable %}
{{ device.name }}
{% if device.description %}
{{ device.description }}
{% endif %}
{% if device.area %} {{ device.area }} {% endif %} {{ device.device_class | capitalize }} {% if device.board %} {{ device.board.name }} / {{ device.entity_type | capitalize }} {{ device.entity_num }} {% else %} No board {% endif %}
{{ device.state_label }}
{% if controllable and device.board %} {% endif %} {% if current_user.is_admin() %}
{% endif %}