custom:appliance-ups-card
UPS: wall socket → tower UPS → protected internet box and NAS. On mains, current flows from the socket through the UPS to the devices. On battery, the socket goes dark with a crossed-out bolt, the screen turns orange, the UPS beeps and current flows from the battery only. The battery seen through the side panel follows entity_charge, the 5-LED bar follows entity_load, the screen shows the charge and the input voltage (runtime when on battery).
States: on mains, charging, on battery, low battery, off and unavailable. The state is read from the NUT integration status: the raw codes of sensor.<ups>_status_data (OL, OB, LB, CHRG, DISCHRG, RB, OVER, OFF…) or the plain text of sensor.<ups>_status (Online, On Battery…). A binary_sensor also works (on = mains present). Without either, the input voltage decides (below mains_min = on battery). Alerts: low battery (LB or charge below battery_low), overload (OVER or load above load_max), replace the battery (RB).
Every value tile can be hidden with its show_… option, and language: fr|en|de|it|es|nb|nl|pl|ro|ru|sr|sr-Latn forces the language.
model (optional, YAML only): the default drawing (socket → tower UPS → box and NAS), or a photo of the UPS instead of the drawn tower: cyberpower_vp1000 (CyberPower VP1000ELCD: the charge is shown over its screen and the power button is the status light) or apc_bx950 (APC Back-UPS 950: the “On Line” light follows the state, no screen)entity (NUT status sensor or binary_sensor)entity_charge (battery %)entity_runtime (s, min or h)entity_load (%)entity_power (W)entity_input_voltageentity_output_voltageentity_energyentity_battery_voltage (V: NUT battery.voltage), entity_nominal_power (W: NUT ups.realpower.nominal), entity_beeper (the buzzer state as text, e.g. NUT ups.beeper.status: shown as is)extra_tiles: a list of { entity, name, icon } shown as extra tiles after the others, in the same style. name and icon are optional (default: the friendly name and the icon of the entity); a plain entity id is also accepted. Tap opens the entity’s more-info; a tile whose entity is missing or unavailable is hidden. Example: extra_tiles: [{ entity: sensor.proxmox_last_backup, name: Last backup, icon: mdi:backup-restore }]battery_low (default 20 %)load_max (default 90 %)mains_min (default 100 V)animations (default true)show_status, show_charge, show_runtime, show_load, show_power, show_voltage, show_energy, show_battery_voltage, show_nominal_power, show_beepertype: custom:appliance-ups-card
entity: sensor.ups_status_data
entity_charge: sensor.ups_battery_charge
entity_runtime: sensor.ups_battery_runtime
entity_load: sensor.ups_load
entity_input_voltage: sensor.ups_input_voltage
entity_power: sensor.ups_current_apparent_power