{% load thresholds %} {% if has_sensors %} {% for netbox in netboxes %} {% if netbox.get_environment_sensors.count > 0 %}

Sensors for {{ netbox.sysname }}

{% for sensor in netbox.get_environment_sensors %}
{% endfor %}
{% endif %} {% endfor %}
{% else %} {# There are no sensors in this room #}
{% if netboxes %}

We could not find any IP devices in the environment category with environment sensors in this room.

{% if netboxes %}

The following IP devices with category ENV are in this room:

{% endif %} {% else %} There are no IP devices in the environment category in this room. {% endif %}
{% endif %}