{% extends "layout.html" %} {% block title %}OptiWarm - Zone: {{ zone.name }}{% endblock %} {% block content %}

{{ zone.name }}

Edit Add Insulation Data Back to Zones
Zone Details
Name: {{ zone.name }}
Location: {{ zone.locationid.name }}
Description: {{ zone.description or "-" }}
Place Type: {{ zone.placetypeid.name }}
Nominal Volume: {% if zone.nominal_valume %} {{ zone.nominal_valume }} M³ {% else %} - {% endif %}
Status: {% if zone.active %} Active {% else %} Inactive {% endif %}
Phone: {{ zone.phone or "-" }}
CMDB ID: {{ zone.cmdb_id or "-" }}
Linked Boilers: {% if zone.boilers %} {% else %} - {% endif %}
Technical Configuration
Sensor Mode: {% if zone.sensor_average %} Use average temperature value {% else %} Use closest temperature {% endif %}
Current Temperature: {% set temp = zone.get_current_temperature() %} {% if temp is not none %} {{ "%.1f"|format(temp[0]) }}°C {% else %} No data {% endif %}
Temperature Requirement: {% if current_temp_requirement %}
{{ "%.1f"|format(current_temp_requirement.min_temp) }}°C - {{ "%.1f"|format(current_temp_requirement.max_temp) }}°C
{{ current_temp_requirement.rule_type }} {% if current_temp_requirement.source == 'event' %} (Event: {{ current_temp_requirement.event_date }}) {% elif current_temp_requirement.days %} ({{ current_temp_requirement.days }}) {% endif %}
{{ current_temp_requirement.time_range }} Priority: {{ current_temp_requirement.rule_priority }}
{% else %} No active rule
No warming rule applies at this time {% endif %}
Responsible Boiler: {% if responsible_boiler_info %}
{{ responsible_boiler_info.boiler.name }} {% if responsible_boiler_info.is_working %} Working {% else %} Idle {% endif %}
{% if responsible_boiler_info.source == 'zone' %} Assigned to zone {% else %} From location (no zone-specific boiler) {% endif %}
{% if responsible_boiler_info.plan %} Planned since: {{ responsible_boiler_info.plan.time_from.strftime('%Y-%m-%d %H:%M') }} {% if responsible_boiler_info.plan.info %}
{{ responsible_boiler_info.plan.info }} {% endif %} {% endif %} {% if responsible_boiler_info.working_since %}
Working since: {{ responsible_boiler_info.working_since.strftime('%Y-%m-%d %H:%M') }} {% endif %}
{% else %} No responsible boiler
No boiler plan found for this zone {% endif %}
Notification: {{ zone.notification or "-" }}
Linked Warming Rules
{% if warming_rules_data %} {% for rule_data in warming_rules_data %} {% endfor %}
{{ rule_data.name }} {{ rule_data.count }} rule{{ 's' if rule_data.count != 1 else '' }}
{% else %}
No warming rules are linked to this zone's place type.
{% endif %}
{% with api_endpoint=url_for('zones.api_boiler_plan', id=zone.zoneid) %} {% include 'partials/boiler_plan_chart.html' %} {% endwith %} {% include 'zones/warm_events.html' %} {% with sensors=zone.indoor_sensors %} {% include 'sensors/zone_sensors.html' %} {% endwith %}
Insulation Data
Add Insulation Data
{% if insulation_data %}
{% for insulation in insulation_data %} {% endfor %}
Outside Temperature Inside Temperature (From) Inside Temperature (To) Period (hours) Heat Loss Rate Actions
{{ "%.1f"|format(insulation.temperature_out) }}°C {{ "%.1f"|format(insulation.temperature_in_from) }}°C {{ "%.1f"|format(insulation.temperature_in_to) }}°C {{ insulation.period }} {{ "%.2f"|format(insulation.temperature_loss_rate) }}°C/h
{% else %}
No insulation data found for this zone. Add insulation data to improve heating efficiency calculations.
{% endif %}
{% endblock %}