{% extends "ocpp/landing_base.html" %} {% load i18n %} {% block title %}{{ charger.display_name|default:charger.name|default:charger.charger_id }}{% endblock %} {% block content %} {% with charger.display_name|default:charger.name|default:charger.charger_id as charger_label %}
{% if connector_switch_links %}
{% endif %}

{{ charger_label }}

{% trans "Serial Number" %}
{{ charger.charger_id }}
{% trans "Connector" %}
{{ charger.connector_label }}
{{ state }} {% if request.user.is_authenticated %}

{% trans "Support" %}

{% trans "Advanced View" %} {% if account_summary_url %} {% trans "Account & Sessions" %} {% endif %}
{% endif %}
{% if charger.last_status or charger_error_code or charger.last_status_timestamp or charger.last_status_vendor_info %}

{% trans "Latest report" %}

{% if charger.last_status %}

{% trans "Reported status" %}: {{ charger.last_status }}

{% endif %} {% if charger_error_code %}

{% trans "Error code" %}: {{ charger_error_code }}

{% endif %} {% if charger.last_status_timestamp %}

{% trans "Last status update" %}: {{ charger.last_status_timestamp|date:"SHORT_DATETIME_FORMAT" }}

{% endif %} {% if charger.last_status_vendor_info %} {% if charger.last_status_vendor_info.vendorId %}

{% trans "Vendor" %}: {{ charger.last_status_vendor_info.vendorId }}

{% endif %} {% if charger.last_status_vendor_info.info %}

{% trans "Info" %}: {{ charger.last_status_vendor_info.info }}

{% endif %} {% endif %}
{% endif %} {% if charger.resolved_authorization_policy != "open" %} {% endif %} {% if tx %}

{% trans "Charging" %}

{% now "SHORT_DATETIME_FORMAT" as live_now_timestamp %}

{% trans "Live now" %} ยท {{ live_now_timestamp }}

{% if charger.connector_id is None and active_connector_count %}

{% blocktrans count active=active_connector_count %}{{ active }} connector active{% plural %}{{ active }} connectors active{% endblocktrans %}

{% endif %}

{% trans "Energy" %}

{{ tx.kw|floatformat:2 }} kW

{% trans "Started" %}

{{ tx.start_time|date:"SHORT_DATETIME_FORMAT" }}

{% if tx_rfid_details %}

{% if tx_rfid_details.display_label %} {{ tx_rfid_details.display_label }} {% else %} {% trans "RFID" %} {% endif %}

{% if tx_rfid_details.url %}

{{ tx_rfid_details.value }}

{% else %}

{{ tx_rfid_details.value }}

{% endif %}
{% endif %} {% else %}

{% if energy_accounts_enabled %} {% trans "Plug in your vehicle and authenticate with your energy account to begin charging." %} {% else %} {% trans "Plug in your vehicle and slide your RFID card over the reader to begin charging." %} {% endif %}

{% endif %}
{% if charger.connector_id is None and connector_overview %}

{% trans "Connectors" %}

{% for item in connector_overview %}
{{ item.label }} {{ item.status }}
{% if item.last_status or item.last_error_code or item.last_status_timestamp or item.last_status_vendor_info %}
{% if item.last_status %}

{% trans "Reported status" %}: {{ item.last_status }}

{% endif %} {% if item.last_error_code %}

{% trans "Error code" %}: {{ item.last_error_code }}

{% endif %} {% if item.last_status_timestamp %}

{% trans "Last status update" %}: {{ item.last_status_timestamp|date:"SHORT_DATETIME_FORMAT" }}

{% endif %} {% if item.last_status_vendor_info %} {% if item.last_status_vendor_info.vendorId %}

{% trans "Vendor" %}: {{ item.last_status_vendor_info.vendorId }}

{% endif %} {% if item.last_status_vendor_info.info %}

{% trans "Info" %}: {{ item.last_status_vendor_info.info }}

{% endif %} {% endif %}
{% endif %} {% if item.tx %}

{% trans "Energy" %}: {{ item.tx.kw|floatformat:2 }} kW

{% trans "Started" %}: {{ item.tx.start_time|date:"SHORT_DATETIME_FORMAT" }}

{% if item.rfid_details %}

{% if item.rfid_details.display_label %} {{ item.rfid_details.display_label }} {% else %} {% trans "RFID" %} {% endif %} : {% if item.rfid_details.url %} {{ item.rfid_details.value }} {% else %} {{ item.rfid_details.value }} {% endif %}

{% endif %} {% else %}

{% trans "No active transaction" %}

{% endif %}
{% endfor %}
{% endif %}
{% endwith %} {% endblock %} {% block extra_js %} {{ landing_translations|json_script:"landing-translations" }} {% endblock %}