项目 / flixlix/power-flow-card-plus

flixlix/power-flow-card-plus

行业推荐
语言 —标签 animationcardcardscustomflowpluspowerenergyhome-assistanthome-automation数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

A power distribution card inspired by the official Energy Distribution card for Home Assistant

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
A power distribution card inspired by the official Energy Distribution card for Home Assistant
1,223累计星
194Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

能耗监测与能效优化

适配系统:能源管理系统、能耗监测平台 · 得分 1.4

面向能耗采集与负荷分析建模,可用于园区/楼宇能效诊断与用能优化建议。

工作流编排与流程自动化

适配系统:工作流引擎、流程自动化平台 · 得分 1.2

提供任务编排、重试与状态管理能力,可作为跨系统业务流程的调度中枢。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
Power Flow Card Plus 是 Home Assistant 默认目录中的卡片,可通过 2026.11+ 的 Marketplace 或 HACS 安装。
特点或设计要点
该卡片提供可视化 UI 编辑器、十四种语言界面,支持双向实体、各圆形副信息、模板功能,并可显示电网断电、低碳能源与单个功率实体,同时自定义标签、图标颜色等细节。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 — · 贡献者 —
—

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 95,591 字节),完整内容见 GitHub 仓库。

# Power Flow Card Plus

[![ko-fi support](https://img.shields.io/badge/support-me-ff5e5b?style=flat-square&logo=ko-fi)](https://ko-fi.com/flixlix)
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=flat-square)](https://github.com/hacs/integration)
![GitHub total downloads](https://img.shields.io/github/downloads/flixlix/power-flow-card-plus/total?style=flat-square)
![commit_activity](https://img.shields.io/github/commit-activity/y/flixlix/power-flow-card-plus?color=brightgreen&label=Commits&style=flat-square)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/flixlix/power-flow-card-plus?style=flat-square)

![2023-03-26-13-04-07](https://user-images.githubusercontent.com/61006057/227771568-78497ecc-e863-46f2-b29e-e15c7c20a154.gif)

> [!TIP]
> **Canonical docs: [cards.flixlix.com/power-flow-card-plus](https://cards.flixlix.com/power-flow-card-plus).** This README is the offline copy. The docs site has the configuration reference, a live playground and copy-paste examples.
>
> - [Installation](https://cards.flixlix.com/power-flow-card-plus/installation)
> - [Configuration reference](https://cards.flixlix.com/power-flow-card-plus/configuration)
> - [Playground](https://cards.flixlix.com/power-flow-card-plus/playground)
> - [Examples](https://cards.flixlix.com/power-flow-card-plus/examples)
> - [Solar and battery setup](https://cards.flixlix.com/guides/solar-battery-power-flow)
> - [Vs the original Power Flow Card](https://cards.flixlix.com/guides/power-flow-card-plus-vs-power-flow-card)

> [!NOTE]
> This card is distributed via [flixlix/power-flow-card-plus](https://github.com/flixlix/power-flow-card-plus), but the source code lives in the monorepo at [flixlix/flixlix-cards](https://github.com/flixlix/flixlix-cards). Issues and feature requests will be tracked there going forward.

## Additional Features / Enhancements

- UI Editor!!! 🥳
- Multiple Language support (🇺🇸, 🇩🇪, 🇵🇹, 🇪🇸, 🇧🇷, 🇳🇱, 🇮🇹, 🇫🇷, 🇷🇺, 🇫🇮, 🇵🇱, 🇩🇰, 🇸🇰, 🇨🇿)
- Bidirectional Individual Entities ↕️
- Secondary Information for all circles ℹ️
- Display Grid Power Outage ⚡️
- Template functionality 📙

<details>
<summary>... and More:</summary>

- Option for card full size
- Add Grid Tolerance for small values, to not display the battery correcting grid values
- New and improved Flow Rate Model
- Choose whether or not to color icons, text, etc.
- Display Individual power entities
- Customize Individual entities' label, icon and color
- Configure whether to hide Individual Entity when state is 0 or unavailable
- Clickable entities (including home)
- Fixed crooked lines
- Have curved lines connect to the Circles
- Keep color of battery to grid line, even when not returning
- Display Low Carbon Energy from the grid
- Customize Low Carbon Energy label, icon, circle color, icon color and state type
- Customize Battery, Solar and Home's color, icon, color of icon and label

</details>

## Goal

The Goal of this card is to provide an easy to understand and visualize way of displaying the current Power Distribution coming from and to different sources, such as solar, grid, home batteries etc. Furthermore, this card aims to expose a lot of customizability and control of its behavior to the configuration, allowing users to tailor it to their specific requirements.

## Scope

This card **does not** aim to display Energy Values (Meaning accumulated power over 1 day, for example).
If this is your goal, check out the [Energy Flow Card Plus](https://github.com/flixlix/energy-flow-card-plus).

## Guides

In case you want to watch a tutorial instead of reading through this very long readme 😅, I recommend the following videos:

- [Power Flow Card Plus in Home Assistant - Jetzt noch besser? Anleitung from Smartzeug](https://youtu.be/PUOU5qdhMro) - _in german_, up to date with version 0.2.2
- [Power Flow Card Plus for Home Assistant from Speak to the Geek](https://youtu.be/C4Zh35E9wJE?si=REuWZxmfF91G0Ht7) - _changes in indvidual configuration_

## Installation

### Marketplace or HACS (recommended)

[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=flixlix&repository=power-flow-card-plus&category=plugin)

This card is in the default catalog. On Home Assistant 2026.11 and newer, go to **Settings → Marketplace**, search for "Power Flow Card Plus" and install it. Before 2026.11, search for it in [HACS](https://hacs.xyz) and download it 🙂

<details>
<summary>Manual install</summary>

1. Download and copy `power-flow-card-plus.js` from the [latest release](https://github.com/flixlix/power-flow-card-plus/releases/latest) into your `config/www` directory.

2. Add the resource reference as decribed below.

### Add resource reference

If you configure Dashboards via YAML, add a reference to `power-flow-card-plus.js` inside your `configuration.yaml`:

```yaml
resources:
  - url: /local/power-flow-card-plus.js
    type: module
```

Else, if you prefer the graphical editor, use the menu to add the resource:

1. Make sure, advanced mode is enabled in your user profile (click on your user name to get there)
2. Navigate to Settings -> Dashboards
3. Click three dot icon
4. Select Resources
5. Hit (+ ADD RESOURCE) icon
6. Enter URL `/local/power-flow-card-plus.js` and select type "JavaScript Module".
   (Use `/hacsfiles/power-flow-card-plus/power-flow-card-plus.js` and select "JavaScript Module" for HACS install if HACS didn't do it already)

</details>

## Usage

> [!IMPORTANT]
> The reference below is kept for offline reading. The **canonical version is [cards.flixlix.com/power-flow-card-plus/configuration](https://cards.flixlix.com/power-flow-card-plus/configuration)** — grouped options, a [playground](https://cards.flixlix.com/power-flow-card-plus/playground) and copy-pasteable examples.

> [!WARNING]  
> This card offers a **LOT** of configuration options. Don't worry, if you want your card's appearance to match the official Energy Flow Card, you will only need to setup the entities. The rest of the options only enable further customization. If this is your goal, please go to [Minimal Configuration](#minimal-configuration) or the [Examples page](https://cards.flixlix.com/power-flow-card-plus/examples) on the docs site.

### Options

#### Card options

| Name                        | Type      |                 Default                  | Description                                                                                                                                                                                                                                                         |
| --------------------------- | --------- | :--------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type                        | `string`  |               **required**               | `custom:power-flow-card-plus`.                                                                                                                                                                                                                                      |
| entities                    | `object`  |               **required**               | One or more sensor entities, see [entities object](#entities-object) for additional entity options.                                                                                                                                                                 |
| title                       | `string`  |                                          | Shows a title at the top of the card.                                                                                                                                                                                                                               |
| dashboard_link              | `string`  |                                          | Legacy, kept so existing configs still work: use [`buttons`](#buttons) instead. Shows a link to a dashboard, e.g. `/energy`. The visual editor offers to convert it to a button.                                                                                    |
| dashboard_link_label        | `string`  | Go To Energy Dashboard (auto-translates) | Legacy: the label of `dashboard_link`.                                                                                                                                                                                                                              |
| second_dashboard_link       | `string`  |                                          | Legacy: a second link like `dashboard_link`.                                                                                                                                                                                                                        |
| second_dashboard_link_label | `string`  | Go To Energy Dashboard (auto-translates) | Legacy: the label of `second_dashboard_link`.                                                                                                                                                                                                                       |
| buttons                     | `list`    |                                          | More buttons at the bottom of the card, after the dashboard links. See [Buttons](#buttons).                                                                                                                                                                         |
| kilo_decimals               | `number`  |                    1                     | Number of decimals rounded to when kilowatts are displayed.                                                                                                                                                                                                         |
| base_decimals               | `number`  |                    1                     | Number of decimals rounded to when watts are displayed.                                                                                                                                                                                                             |
| keep_trailing_zeros         | `boolean` |                  false                   | Always show the decimals a value is rounded to, keeping trailing zeros: `1.0 kW` instead of `1 kW`.                                                                                                                                                                 |
| min_flow_rate               | `number`  |                   .75                    | Seconds the quickest dot takes along a 175px line; shorter lines take less, longer lines more. See [Flow Formula](#flow-formula).                                                                                                                                   |
| max_flow_rate               | `number`  |                    6                     | Seconds the slowest dot takes along a 175px line; shorter lines take less, longer lines more. See [Flow Formula](#flow-formula).                                                                                                                                    |
| dot_animation               | `string`  |                  `auto`                  | How the flow dots move: `gpu` moves them off the main thread, `classic` uses SVG animation as before v0.4.0. `auto` picks `classic` on ARM Mali GPUs, such as the Fire HD 10 (2023), whose drivers draw icons, values and lines in the wrong place with `gpu` dots. |
| kilo_threshold              | `number`  |                    0                     | The number of watts to display before converting to and displaying kilowatts. Setting of 0 will always display in kilowatts.                                                                                                                                        |
| clickable_entities          | `boolean` |                   true                   | Clicking a circle opens the entity's more info dialog. Set to `false` to turn it off.                                                                                                                                                                               |
| min_expected_power          | `number`  |                   0.01                   | Represents the minimum amount of power (in Watts) expected to flow through the system at a given moment. Only used by the `duration` and `speed` [flow rate models](#flow-formula).                                                                                 |
| max_expected_power          | `number`  |                   2000                   | Represents the maximum amount of power (in Watts) expected to flow through the system at a given moment. Only used by the `duration` and `speed` [flow rate models](#flow-formula).                                                                                 |
| display_zero_lines          | `object`  |             `{mode: "show"}`             | Check [Display Zero Lines](#display-zero-lines)                                                                                                                                                                                                                     |
| full_size                   | `boolean` |                  false                   | Warning: This option is experimental. To use this option, you must set your view to panel mode. If set to true, the card will take up the full height of the screen. And the Card should go to the center of the screen.                                            |
| style_ha_card               | `css`     |                                          | [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) Styling to apply to the container of the card (border and background of the card).                                                                                                                          |
| style_card_content          | `css`     |                                          | [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) Styling to apply to the content of the card (all circles and lines of the card).                                                                                                                            |
| flow_rate_model             | `string`  |                `duration`                | How dot speed follows power: `duration`, `speed` or `relative`. See [Flow Formula](#flow-formula).                                                                                                                                                                  |
| use_new_flow_rate_model     | `boolean` |                                          | Older alias of `flow_rate_model`: `false` is `relative`, `true` is `duration`. Ignored when `flow_rate_model` is set.                                                                                                                                               |
| sort_individual_devices     | `boolean` |           true (since v0.3.1)            | If `true`, sort devices in order of power consumption -> entity id -> alphabetically.                                                                                                                                                                               |
| allow_layout_break          | `boolean` |                  false                   | Always allow up to 4 individual devices to show, even when there is not enough space, causing visual layout break.                                                                                                                                                  |
| topology                    | `string`  |                `standard`                | Which wires your installation has: `standard`, `battery_hub` or `isolated_battery`. See [Topology](#topology).                                                                                                                                                      |

#### Action Configuration

The card supports Home Assistant action configs on entity circles and other clickable entity surfaces.

| Name              | Type     | Description                           |
| ----------------- | -------- | ------------------------------------- |
| tap_action        | `object` | Action triggered on tap/click.        |
| hold_action       | `object` | Action triggered on long press.       |
| double_tap_action | `object` | Action triggered on double tap/click. |

If none of these actions are configured for a clickable entity surface, the card falls back to opening more-info unless `clickable_entities: false`.

#### Buttons

`buttons` adds a row of buttons at the bottom of the card. In the visual editor, open **Buttons** to add, remove, reorder and edit them.

`dashboard_link` and `second_dashboard_link` still work and show before the buttons, but they are no longer in the visual editor. When a config still has them, the editor offers **Convert to buttons**, which turns each link into a button with a `navigate` action (or `url` for a full URL), keeping its label and its place in the row.

| Name              | Type     | Description                                                                                     |
| ----------------- | -------- | ----------------------------------------------------------------------------------------------- |
| name              | `string` | Text on the button. Leave it out for an icon-only button.                                       |
| icon              | `string` | Icon shown before the name, e.g. `mdi:solar-power`.                                             |
| entity            | `string` | Entity for `more-info` and `toggle` actions. Without a name or icon, the button shows its name. |
| tap_action        | `object` | Action triggered on tap/click. Without any action, a tap opens the entity's more-info.          |
| hold_action       | `object` | Action triggered on long press.                                                                 |
| double_tap_action | `object` | Action triggered on double tap/click.                                                           |

```yaml
buttons:
  - name: Solar
    icon: mdi:solar-power
    tap_action:
      action: navigate
      navigation_path: /dashboard-energy/solar
  - name: Battery
    icon: mdi:home-battery
    entity: input_boolean.battery_force_charge
    tap_action:
      action: toggle
```

#### Entities object

At least one of _grid_, _battery_, or _solar_ is required. All entites (except _battery_charge_) should have a `unit_of_measurement` attribute of W(watts) or kW(kilowatts). Entities in other units, e.g. `m³`, are read as they are, without scaling.

| Name                   | Type     | Description                                                                      |
| ---------------------- | :------- | -------------------------------------------------------------------------------- |
| grid                   | `object` | Check [Grid Configuration](#grid-configuration) for more information.            |
| solar                  | `object` | Check [Solar Configuration](#solar-configuration) for more information.          |
| battery                | `object` | Check [Battery Configuration](#battery-configuration) for more information.      |
| individual             | `array`  | Check [Individual Devices](#individual-configuration) for more information.      |
| auxilia
↑