Skip to content

Commit

Permalink
feat: display up to 6 MPPT's on the lite or compact card when wide
Browse files Browse the repository at this point in the history
…view is enabled closes #586
  • Loading branch information
slipx06 committed Jan 11, 2025
1 parent 3dc3a1a commit 59cfe99
Show file tree
Hide file tree
Showing 23 changed files with 355 additions and 17 deletions.
18 changes: 9 additions & 9 deletions dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ These attributes are only needed if `show_solar` is set to `true`.
| show_daily: | Optional | `false` | Toggles the daily total.
| display_mode: | Optional | `1` | `1` - Only display the daily total, `2` - Display the daily total and remaining daily forecast, `3` - Display the daily total and total solar generation.
| dynamic_colour: | Optional | `true` | The solar elements on the card will be greyed out if total solar power < 10W.
| mppts: | **Required** | `2` | Specify the number of MPPT's in use `1`, `2`, `3` or `4`.
| mppts: | **Required** | `2` | Specify the number of MPPT's in use `1-6`. Use the `wide` view to display more than four MPPT's on the compact or lite cards.
| animation_speed: | Optional | `9` | Set slowest animation speed in seconds, depending on Power produced.
| max_power: | Optional | `8000` | Maximum power draw to calculate animation speed. This value is also used to calculate the solar efficiency for the total PV power and should equal the total size of your PV array. Numeric value or sensor.
| pv1_name: | Optional | `PV1` | Set the disaply name for MPPT1.
Expand All @@ -123,6 +123,10 @@ These attributes are only needed if `show_solar` is set to `true`.
| pv3_max_power: | Optional | | Maximum power of MPPT3 based on the number and size of panels. Used to calculate solar efficiency of the string (W). Numeric value or sensor.
| pv4_name: | Optional | `PV4` | Set the disaply name for MPPT4.
| pv4_max_power: | Optional | | Maximum power of MPPT4 based on the number and size of panels. Used to calculate solar efficiency of the string (W). Numeric value or sensor.
| pv5_name: | Optional | `PV5` | Set the disaply name for MPPT5.
| pv5_max_power: | Optional | | Maximum power of MPPT4 based on the number and size of panels. Used to calculate solar efficiency of the string (W). Numeric value or sensor.
| pv6_name: | Optional | `PV6` | Set the disaply name for MPPT6.
| pv6_max_power: | Optional | | Maximum power of MPPT4 based on the number and size of panels. Used to calculate solar efficiency of the string (W). Numeric value or sensor.
| 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.
| efficiency: | Optional | `0` | `0` - Disabled, `1` - Graphic display, `2` - Text display, `3` - Graphic and text display.
| off_threshold: | Optional | `10` | When total PV power falls belows this threshold colour will change to grey. Requires `dynamic_colour` to be enabled.
Expand Down Expand Up @@ -234,6 +238,8 @@ mappings if using other integration methods.
| pv2_power_187: | Optional | `sensor.sunsynk_pv2_power` | PV string 2 power (W). |
| pv3_power_188: | Optional | `sensor.sunsynk_pv3_power` | PV string 3 power (W). |
| pv4_power_189: | Optional | `sensor.sunsynk_pv4_power` | PV string 4 power (W). |
| pv5_power: | Optional | `sensor.sunsynk_pv5_power` | PV string 5 power (W). |
| pv6_power: | Optional | `sensor.sunsynk_pv6_power` | PV string 6 power (W). |
| pv_total: | Optional | `none` | Provide a sensor for total pv power. If omitted the card uses internal logic to calculate this based on the pv1-4 power (W).
| pv1_voltage_109: | Optional | `sensor.sunsynk_pv1_voltage` | PV string 1 voltage (V). |
| pv1_current_110: | Optional | `sensor.sunsynk_pv1_current` | PV string 1 current (A). |
Expand All @@ -243,6 +249,10 @@ mappings if using other integration methods.
| pv3_current_114: | Optional | `sensor.sunsynk_pv3_current` | PV string 3 current (A). |
| pv4_voltage_115: | Optional | `sensor.sunsynk_pv4_voltage` | PV string 4 voltage (V). |
| pv4_current_116: | Optional | `sensor.sunsynk_pv4_current` | PV string 4 current (A). |
| pv5_voltage: | Optional | `sensor.sunsynk_pv4_voltage` | PV string 5 voltage (V). |
| pv5_current: | Optional | `sensor.sunsynk_pv4_current` | PV string 5 current (A). |
| pv6_voltage: | Optional | `sensor.sunsynk_pv4_voltage` | PV string 6 voltage (V). |
| pv6_current: | Optional | `sensor.sunsynk_pv4_current` | PV string 6 current (A). |
| remaining_solar: | Optional | `sensor.solcast_forecast_remaining_today` | The remaining solar forecast for the day (kWh). Use with solar `display_mode:2`. |
| total_pv_generation: | Optional | | Total Solar generation (Lifetime or forecast for the day) (kWh). Use with solar `display_mode:3`. |
| solar_sell_247: | Optional | `switch.sunsynk_toggle_solar_sell` | Displays icons to indicate if sell solar is active or not. The switch can be toggled by clicking on the icon (`on/off`, `1/0`).
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.2.2",
"version": "6.3.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 59cfe99

Please sign in to comment.