Skip to content

Commit

Permalink
feat: add support for display of gas and water (#110)
Browse files Browse the repository at this point in the history
* feat: add support for water and gas

* update readme

* fix lines when gas & water but no battery
  • Loading branch information
ulic75 committed Nov 16, 2022
1 parent 96342dc commit 270b3e6
Show file tree
Hide file tree
Showing 4 changed files with 276 additions and 64 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ At least one of _grid_, _battery_, or _solar_ is required. All entites (except _
| battery | `string` / `object` | Entity ID of a sensor supporting a single state with negative values for production and positive values for consumption or an object for [split entites](#split-entities). Examples of both can be found below. |
| battery_charge | `string` | Entity ID providing a state with the current percentage of charge on the battery. |
| solar | `string` | Entity ID providing a state with the value of generation. |
| gas | `string` | Entity ID providing a state value of consumption |
| water | `string` | Entity ID providing a state value of consumption |

#### Split entities

Expand Down
2 changes: 2 additions & 0 deletions src/power-flow-card-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export interface PowerFlowCardConfig extends LovelaceCardConfig {
battery_charge?: string;
grid: string | ComboEntity;
solar?: string;
gas?: string;
water?: string;
};
dashboard_link?: string;
inverted_entities: string | string[];
Expand Down
Loading

0 comments on commit 270b3e6

Please sign in to comment.