A custom Home Assistant card for visualizing 24-hour power outage schedules from the ha-yasno-outages integration.
Design Inspiration: The visual design of this card is inspired by the "Київ Цифровий" mobile app by "КП ГІОЦ", which provides a clean and intuitive way to display power outage schedules.
| Light theme | Dark theme |
|---|---|
![]() |
![]() |
This card requires the ha-yasno-outages integration to be installed and configured in your Home Assistant instance. The integration provides calendar entities with power outage schedule data from Yasno.
- 24-Hour Grid View: Displays each hour of the day as individual "bricks"
- Three Power States:
- Powered: No outage expected
- Certain Outage: Power will definitely be cut
- Possible Outage: Power might be cut
- Partial Hour Support: Shows vertical splits when outages start/end mid-hour
- Versatile Title/Subtitle: Configure using strings, templates, or arrays of content items (entity, device, area, state, attributes, custom text)
- Visual Editor: Chip-based interface for configuring title/subtitle (same as Home Assistant's tile card)
- Auto-updating Timestamps: Relative time display for timestamp sensors with automatic updates
- Template Support: Use Jinja2 templates with reactive updates
- Responsive Design: Works on all device sizes
- Legend: Visual guide for understanding the states
- Open HACS in your Home Assistant instance
- Go to "Frontend" section
- Click the menu (three dots) in the top right
- Select "Custom repositories"
- Add this repository URL:
https://github.com/klevytskyi/ha-yasno-outages-card - Select category: "Lovelace"
- Click "Add"
- Find "Yasno Outages Card" in HACS and install it
- Restart Home Assistant
-
Download
yasno-outages-card.jsfrom the latest release -
Copy the file to your
config/wwwfolder (create it if it doesn't exist) -
Add the resource to your Lovelace configuration:
Via UI: Configuration → Dashboards → Resources → Add Resource
- URL:
/local/yasno-outages-card.js - Type: JavaScript Module
Via YAML in
configuration.yaml:lovelace: resources: - url: /local/yasno-outages-card.js type: module
- URL:
-
Refresh your browser (hard refresh: Ctrl+Shift+R / Cmd+Shift+R)
- type: custom:yasno-outages-card
entity: calendar.yasno_power_outages- type: custom:yasno-outages-card
entity: calendar.yasno_power_outages
title: "Power Schedule"
subtitle: "Today's outages"- type: custom:yasno-outages-card
entity: calendar.yasno_power_outages
title: "{{ state_attr('calendar.yasno_power_outages', 'friendly_name') }}"
subtitle: "{{ now().strftime('%A, %d %B %Y') }}"- type: custom:yasno-outages-card
entity: calendar.yasno_power_outages
title: "Power Outages"
subtitle_entity: sensor.yasno_last_updated
subtitle:
type: state # Shows "20 годин тому" with auto-update- type: custom:yasno-outages-card
entity: calendar.yasno_power_outages
title:
- type: area # "Living Room"
- type: text
text: "-"
- type: entity # "Yasno Power Outages"
subtitle_entity: sensor.yasno_last_updated
subtitle:
- type: text
text: "Оновлено"
- type: state # "20 годин тому"See the examples directory for more configuration samples.
- Home Assistant: 2024.1.0 or newer
- Required Integration: ha-yasno-outages
- Browsers: All modern browsers supporting ES2020
Contributions are welcome! Please feel free to submit a Pull Request.
See BUILD.md and DEVELOPMENT.md for development instructions.
MIT License - See LICENSE file for details.
- Design inspired by "Київ Цифровий" app by "КП ГІОЦ"
- Data provided by ha-yasno-outages integration
- For card issues: Open an issue
- For integration issues: ha-yasno-outages issues
- Home Assistant Community Forum

