Home Assistant Blueprints
Aivi provides a set of Home Assistant blueprints that help you connect Home Assistant
devices and automations to Live Activities and persistent widgets. They handle the
“plumbing” - watching entities for changes and calling the right rest_command with
the right payload - so you can get a working Live Activity or widget in a few clicks.
Prerequisites
Section titled “Prerequisites”The Live Activity blueprints call rest_command.update_live_activity and the
widget blueprints call rest_command.update_widget. Add both to your Home
Assistant configuration:
-
Open your Home Assistant
configuration.yaml. -
Add the
rest_commandentries below:rest_command:update_live_activity:url: 'https://api.getaivi.app/activity/{{ slug }}'method: PATCHheaders:content-type: application/jsonauthorization: Token [token]payload: '{{ payload }}'update_widget:url: 'https://api.getaivi.app/widget/{{ slug }}'method: PATCHheaders:content-type: application/jsonauthorization: Token [token]payload: '{{ payload }}' -
Reload your Home Assistant configuration.
Versioning
Section titled “Versioning”Blueprints are versioned using a suffix like -v1 (for example, timer-v1).
- Stability: Updates within the same major version (e.g.
v1) are intended to be backwards compatible. - Breaking changes: If we need to change inputs or behavior in a breaking way, we’ll
publish a new major version (e.g.
-v2) alongside the old one so existing automations keep working. - Upgrades: To move to a new major version, import the newer blueprint and reselect your entities/inputs in the automation editor (Home Assistant does not auto-migrate blueprint input mappings across breaking changes).
Live Activity blueprints
Section titled “Live Activity blueprints”These blueprints drive Live Activities through
rest_command.update_live_activity.
Progress: Simple (from sensors)
Section titled “Progress: Simple (from sensors)”Drives a simple progress bar from sensors. Use this when your device exposes:
- A binary “running” entity (on/off)
- A progress sensor (0–100)
- Optionally, an ETA sensor (timestamp or duration) and/or a human-readable state sensor (“Washing”, “Drying”, …)
Progress: Segmented (from sensors)
Section titled “Progress: Segmented (from sensors)”Drives a segmented progress bar from sensors. Same inputs as the simple blueprint, but lets you define up to 4 labeled segments with individual colors, track patterns, and a display mode (split or layered).
Progress: Timer (from a timer helper)
Section titled “Progress: Timer (from a timer helper)”Drives a simple progress bar from a Home Assistant timer. Automatically synchronizes the Live Activity state with the timer’s progress, and supports pausing, resuming, and cancelling.
Monitor
Section titled “Monitor”Use this when you want to drive the Monitor template from sensors or templates. It supports optional headers/footers, custom value colors, formatters, and per-column visibility conditions, with an optional set of custom triggers for templated fields.
Widget blueprints
Section titled “Widget blueprints”One blueprint per widget template. Each one watches your
sensors and calls rest_command.update_widget when they change, and they all
share the same conveniences: an SF Symbols icon with full
customization, an accent color, an optional tap
URL, and an optional staleness threshold (stale_after). Updates are skipped
while a required sensor is unavailable.
Status widget
Section titled “Status widget”Keeps a Status widget in sync with your sensors: a hero reading and a supporting state line.
Progress widget
Section titled “Progress widget”Drives a Progress widget: a live bar or self-advancing countdown with an optional state line.
Gauge widget
Section titled “Gauge widget”Puts a numeric sensor on a Gauge widget’s dial.
Battery widget
Section titled “Battery widget”Tracks up to eight battery sensors on a Battery widget. Device names default to each sensor’s friendly name, with any trailing “battery” stripped.
Budget widget
Section titled “Budget widget”Keeps a Budget widget current with a top-level budget and up to six category breakdowns.
Trend widget
Section titled “Trend widget”Feeds a Trend widget with a current reading and its recent history sparkline.
Countdown widget
Section titled “Countdown widget”Aims a Countdown widget at a timestamp from a sensor; the countdown then ticks on-device.
List widget
Section titled “List widget”Fills a List widget with up to eight labeled rows from arbitrary entities.
Prices widget
Section titled “Prices widget”Publishes a price series to a Prices widget, which keeps the current period highlighted on its own.
Energy widget
Section titled “Energy widget”Wires solar, grid, battery, and home power sensors into an Energy widget, with up to three named generation sources.
Legacy blueprints
Section titled “Legacy blueprints”These blueprints drive the legacy Generic template. They continue to work, but we recommend using the Progress blueprints above for new automations.
Generic: Progress + ETA (from sensors)
Section titled “Generic: Progress + ETA (from sensors)”Drives the legacy Generic template from sensors. See Progress: Simple for the recommended replacement.
Generic: Timer (from a timer helper)
Section titled “Generic: Timer (from a timer helper)”Drives the legacy Generic template from a timer helper. See Progress: Timer for the recommended replacement.
Source code
Section titled “Source code”The source code for all blueprints is available on GitHub at getaivi/ha-blueprints.