Skip to content

Commit a0d911f

Browse files
authored
Changes for 1.3.2.8
## Added - `import_entity` and `export_entity` on `grid` can be set instead of single grid power entity. (YAML only) - `charge_entity` and `discharge_entity` on `battery` can be set instead of a single battery power entity (YAML only) ## Changed - Added a time-based smoothing to the flow animations to try and resolve glitches from fast updating power entities.
1 parent e77c21d commit a0d911f

File tree

2 files changed

+305
-34
lines changed

2 files changed

+305
-34
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,43 @@ Common keys for `pv`, `grid`, `home`, `battery`. The following settings are poss
103103
| Tap Action | `tap_action` | Set to `more-info` or `navigate`. `navigate` requires a `navigation_path`. Default behaviour is `more-info` |
104104
| Navigation Path | `navigation_path` | Used with `tap_action: navigate`. Set to a local path to go to a dashboard, e.g. `/my-dashboard/page` |
105105

106+
**Separate Entities for Grid or Battery:**
107+
108+
If you don't have a single entity for grid or battery power, you can instead use separate entities for both. This is not part of the configuration UI, it can only be added as YAML manually to the card.
109+
110+
For Grid:
111+
112+
| Name | Setting slug | What it does |
113+
| ------------------- | ----------------------- | ------------------------------------------------------------------------------- |
114+
| Import Entity | `import_entity` | Sensor defining the import power from the grid. |
115+
| Export Entity | `export_entity` | Sensor defining the export power from the grid. |
116+
117+
For Battery (can be provided for each battery):
118+
119+
| Name | Setting slug | What it does |
120+
| ------------------- | ----------------------- | ------------------------------------------------------------------------------- |
121+
| Charge Entity | `charge_entity` | Sensor defining the import power from the grid. |
122+
| Discharge Entity | `discharge_entity` | Sensor defining the export power from the grid.
123+
124+
Example:
125+
126+
```yaml
127+
type: custom:compact-power-card
128+
entities:
129+
pv:
130+
entity: sensor.givtcp_pv_power
131+
battery:
132+
- charge_entity: sensor.givtcp_charge_power
133+
discharge_entity: sensor.givtcp_discharge_power
134+
- charge_entity: sensor.givtcp_charge_power_battery2
135+
discharge_entity: sensor.givtcp_discharge_power_battery2
136+
grid:
137+
import_entity: sensor.givtcp_import_power
138+
export_entity: sensor.givtcp_export_power
139+
decimal_places: 1
140+
threshold: 0
141+
```
142+
106143
**Battery only:**
107144

108145
| Name | Setting slug | What it does |

0 commit comments

Comments
 (0)