{% extends "base.html" %} {% block title %}{{ device.name }} — Battery Tracker{% endblock %} {% block content %}

{{ device.name }}

{% if device.device_type %} {% endif %} {% if device.has_mixed_brands() %} {% endif %} {% if device.notes %} {% endif %} {% if ha_enabled and device.ha_entity_id %} {% if ha_live_pct is not none %} {% endif %} {% endif %}
Slots {{ device.installed_count() }} / {{ device.battery_slots }} used
Type {{ device.device_type }}
Warning ⚠ Mixed brands installed
Notes {{ device.notes }}
HA Entity {{ device.ha_entity_id }}
HA Live % {% if ha_live_pct < 20 %} ⚠ {{ ha_live_pct }}% {% else %} {{ ha_live_pct }}% {% endif %}

Install Batteries

{% set free_slots = device.battery_slots - device.installed_count() %}

{{ free_slots }} slot(s) free

Brand Qty

Installed Batteries

{% set installed = device.batteries | selectattr('status', 'eq', 'installed') | list %} {% if installed %}
{% if ha_enabled %}{% endif %} {% for b in installed %} {% if ha_enabled %} {% endif %} {% endfor %}
LabelBrandBat %NotesActions
{{ b.label }} {{ b.brand }} {% if b.battery_percentage is not none %} {% if b.battery_percentage < 20 %} ⚠ {{ b.battery_percentage }}% {% else %}{{ b.battery_percentage }}%{% endif %} {% else %}—{% endif %} {{ b.notes or '—' }}
{% else %}

No batteries installed.

{% endif %}

Install Specific Battery

{% if available_batteries %}
{% else %}

No available batteries.

{% endif %}

Edit Device

{% set _preset_types = ['Remote Control','Game Controller','Flashlight','Lock','Sensor','Toy','Clock','Smoke Detector'] %}
{% if ha_enabled %}
{% endif %}

Delete Device

Deleting this device will unassign all installed batteries and mark them available.

← Back to Devices {% if ha_enabled %} {% endif %} {% endblock %}