Skip to content

Commit

Permalink
feat: you can now assign entities to your essential loads that make t…
Browse files Browse the repository at this point in the history
…he icons clickable. Useful if you want to turn a load on or off from the card. Set the entities using the load1_switch, load2_switch, load3_switch etc attributes.
  • Loading branch information
slipx06 committed Jan 11, 2025
1 parent 59cfe99 commit 2ace320
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 104 deletions.
6 changes: 3 additions & 3 deletions dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,23 @@ These attributes are only needed if `show_solar` is set to `true`.
| essential_name: | Optional | `Essential` | Set the display name for the essential load.
| additional_loads: | Optional | `0` | Display additional loads on the essential side (`0/1/2/3/4/5/6`). Three loads will only be visable when using the lite and compact card. Up to six loads can be displayed if using the wide screen display mode. Four or more loads are only visable on the full card if `show_aux: false`.
| load1_name: | Optional | | Set the display name for the essential load 1.
| load2_name: | Optional | | Set the display name for the essential load 2.
| load3_name: | Optional | | Set the display name for the essential load 3 (Lite/compact card only).
| load4_name: | Optional | | Set the display name for the essential load 4.
| load5_name: | Optional | | Set the display name for the essential load 5.
| load6_name: | Optional | | Set the display name for the essential load 6.
| load1_icon: | Optional | none | Set the essential load 1 image using preset or any mdi icon e.g. `mdi:ev-station` Presets are: `boiler`, `pump`, `aircon`, `oven`. You can also provide a sensor that returns the mdi icon. |
| load1_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 1 icon.
| load2_name: | Optional | | Set the display name for the essential load 2.
| load2_icon: | Optional | none | Set the essential load 2 image using preset or any mdi icon e.g. `mdi:ev-station` Presets are: `boiler`, `pump`, `aircon`, `oven`. You can also provide a sensor that returns the mdi icon. |
| load2_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 2 icon.
| load3_name: | Optional | | Set the display name for the essential load 3 (Lite/compact card only).
| load3_icon: | Optional | none | Set the essential load 3 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. |
| load3_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 3 icon.
| load4_name: | Optional | | Set the display name for the essential load 4.
| load4_icon: | Optional | none | Set the essential load 4 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. |
| load4_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 4 icon.
| load5_name: | Optional | | Set the display name for the essential load 5.
| load5_icon: | Optional | none | Set the essential load 5 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. |
| load5_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 5 icon.
| load6_name: | Optional | | Set the display name for the essential load 6.
| load6_icon: | Optional | none | Set the essential load 6 image using any mdi icon e.g. `mdi:ev-station` Presets are not available when showing 4 or more essential loads. You can also provide a sensor that returns the mdi icon. |
| load6_switch: | Optional | | Provide an entity that can be toggled when clicking on the essential load 6 icon.
| auto_scale: | Optional | `true` | If set to `true` the card will use the entities `unit_of_measurement` attribute to perform the correct scaling (i,e, power values greater than 999W will be displayed as kW e.g. 1.23kW) and display the correct unit. The number of decimal places can be changed using the `decimal_places` card attribute apart from the daily energy values which are set using the `decimal_places_energy` attribute. |
| off_threshold: | Optional | `0` | When power falls below this value the load will be considered off and colour will change to grey. Requires `dynamic_colour` to be enabled. Can also be set to `-1` to disable. |
| path_threshold: | Optional | `100` | Specify threshold to apply dynamic colour to the load path element. The colour of the path will change to the source colour if the percentage supply by a single source equals or exceeds this value.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
"version": "6.3.0",
"version": "6.4.0",
"description": "A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.",
"main": "sunsynk-power-flow-card.js",
"scripts": {
Expand Down
Loading

0 comments on commit 2ace320

Please sign in to comment.