{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block content %} {% if bridge_status or bridge_error %}
{{ 'Sin bridge' if bridge_error else ('Conectado' if bridge_status and bridge_status.connected else 'Degradado') }} {% if bridge_status %} Ultimo dato: {{ bridge_status.last_message_at | datetime_local }} {% endif %} {% if bridge_error %} {{ bridge_error }} {% endif %}
{% endif %} {% if not periods %}

No hay periodos configurados

Empieza creando el primer periodo de facturacion para delimitar el consumo a calcular.

Ir a periodos
{% else %} {% if current_summary %}
Periodo actual {{ current_summary.period.name }} {{ current_summary.period.effective_start }} a {{ current_summary.period.effective_end }}
Costo total factura {{ current_summary.total | money }} Servicio + IVA y otros conceptos
Costo total energia {{ current_summary.service_total | money }} Energia + cargos y formulas de servicio
Energia electrica {{ current_summary.energy_cost | money }} Tarifa {{ current_summary.config_source.bands_scope }}
Red {{ current_summary.inverter_consumption_kwh | kwh }} kWh {{ current_summary.daily_points | length }} dias con registro
Compania {% if current_summary.utility_consumption_kwh is not none %}{{ current_summary.utility_consumption_kwh | kwh }} kWh{% else %}Sin dato{% endif %} {% if current_summary.consumption_difference_kwh is not none %} Diferencia: {{ current_summary.consumption_difference_kwh | kwh }} kWh {% else %} Aun no cargaste la lectura real {% endif %}
Consumo facturable {{ current_summary.billing_consumption_kwh | kwh }} kWh {% if current_summary.consumption_source == 'utility' %}Tomado de la compania{% else %}Tomado de la red del inversor{% endif %}
Cobertura {{ current_summary.coverage_observed_day_count }}/{{ current_summary.coverage_expected_day_count }} Dias con medicion considerados para validar
{% if yearly_change %}
Variacion anual Hasta 12 meses Comparado con {{ yearly_change.baseline_period_name }} Tarifas: {% if yearly_change.energy_rate_change_percent is not none %}{{ yearly_change.energy_rate_change_percent | percent }}{% else %}n/d{% endif %} {% if yearly_change.energy_rate_baseline > 0 %} | {{ yearly_change.energy_rate_baseline | money }}/kWh -> {{ yearly_change.energy_rate_current | money }}/kWh {% endif %} Cargos fijos: {% if yearly_change.fixed_total_change_percent is not none %}{{ yearly_change.fixed_total_change_percent | percent }}{% else %}n/d{% endif %} {% if yearly_change.fixed_total_baseline > 0 %} | {{ yearly_change.fixed_total_baseline | money }} -> {{ yearly_change.fixed_total_current | money }} {% endif %}
{% endif %}
Integridad inversor {{ 'Revisar' if current_summary.has_inverter_issue else 'OK' }} {{ current_summary.inverter_issue_summary }}
{% endif %}

Periodos

Detalle calculado

{% if can_manage %} Administrar periodos {% endif %}
{% for summary in summaries %} {% endfor %}
Periodo Rango Red Compania Facturable Medicion Energia electrica Total servicio IVA y otros Total
{{ summary.period.name }} {% if summary.period.is_open %} Abierto {% endif %} {% if summary.has_inverter_issue %} Revisar {% endif %} {{ summary.period.effective_start }} a {{ summary.period.effective_end }} {{ summary.inverter_consumption_kwh | kwh }} kWh {% if summary.utility_consumption_kwh is not none %} {{ summary.utility_consumption_kwh | kwh }} kWh {% else %} Sin dato {% endif %} {{ summary.billing_consumption_kwh | kwh }} kWh {{ 'Revisar' if summary.has_inverter_issue else 'OK' }}
{{ summary.inverter_issue_summary }}
{{ summary.energy_cost | money }} {{ summary.service_total | money }} {{ summary.other_concepts_total | money }} {{ summary.total | money }}
{% if consumption_chart or costs_chart or tariff_price_chart or fixed_charge_chart %}

Graficos

Comparativos por periodo

Puedes alternar entre barras y una vista de area similar a la del inversor.

{% if consumption_chart %}

{{ consumption_chart.title }}

{{ consumption_chart.subtitle }}

{% for item in consumption_chart.legend %} {{ item.label }} {% endfor %}
{% endif %} {% if costs_chart %}

{{ costs_chart.title }}

{{ costs_chart.subtitle }}

{% for item in costs_chart.legend %} {{ item.label }} {% endfor %}
{% endif %} {% if tariff_price_chart %}

{{ tariff_price_chart.title }}

{{ tariff_price_chart.subtitle }}

{% for item in tariff_price_chart.legend %} {{ item.label }} {% endfor %}
{% endif %} {% if fixed_charge_chart %}

{{ fixed_charge_chart.title }}

{{ fixed_charge_chart.subtitle }}

{% for item in fixed_charge_chart.legend %} {{ item.label }} {% endfor %}
{% endif %}
{% endif %} {% endif %} {% endblock %}