Skip to content

Commit

Permalink
Merge branch 'slipx06:main' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Roving-Ronin authored Apr 29, 2024
2 parents 094f324 + 4bb8c8e commit ec0d556
Show file tree
Hide file tree
Showing 29 changed files with 807 additions and 464 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
An animated Home Assistant card to emulate the power flow that's shown on the Sunsynk Inverter screen. You can use this to display data from many inverters e.g. Sunsynk, Deye, Solis, Lux, FoxESS, Goodwe, Huawei etc as long as you have the required sensor data. See the [wiki](https://github.com/slipx06/sunsynk-power-flow-card/wiki) for integration methods and examples.

[![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=slipx06&repository=sunsynk-power-flow-card&category=plugin)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/slipx06/sunsynk-power-flow-card?style=for-the-badge) <a href="https://www.buymeacoffee.com/slipx" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="28" width="120"></a>

![GitHub release (latest by date)](https://img.shields.io/github/v/release/slipx06/sunsynk-power-flow-card?style=for-the-badge)
[![Community Forum](https://img.shields.io/badge/community-forum-brightgreen.svg?style=for-the-badge)](https://community.home-assistant.io/t/sunsynk-deye-inverter-power-flow-card/562933/1)
<a href="https://www.buymeacoffee.com/slipx" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="28" width="120"></a>
## Documentation

Refer to [https://slipx06.github.io/sunsynk-power-flow-card/index.html](https://slipx06.github.io/sunsynk-power-flow-card/index.html)
Expand Down
20 changes: 10 additions & 10 deletions dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

26 changes: 16 additions & 10 deletions docs/configuration.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/examples/sunsynk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,17 @@ Full Configuration (All Options)
animation_speed: 9
max_power: 8000
pv1_name: North
pv1_max_power: 2750
pv2_name: North
pv2_max_power: 2750
pv3_name: East
pv3_max_power: 2750
pv4_name: West
pv4_max_power: 2750
auto_scale: true
display_mode: 1
dynamic_colour: true
efficiency: 3
load:
colour: '#5fb6ad'
show_daily: true
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
"version": "4.30.1",
"version": "4.34.1",
"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 All @@ -17,7 +17,7 @@
"type": "git",
"url": "git+https://github.com/slipx06/sunsynk-power-flow-card.git"
},
"author": "marksie1988 <marksie1988@users.noreply.github.com>",
"author": "slipx06 <slipx06@users.noreply.github.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/slipx06/sunsynk-power-flow-card/issues"
Expand All @@ -26,7 +26,7 @@
"dependencies": {
"@lit-labs/scoped-registry-mixin": "^1.0.3",
"custom-card-helpers": "^1.9.0",
"lit": "^3.1.2",
"lit": "^3.1.3",
"lodash.merge": "^4.6.2"
},
"devDependencies": {
Expand All @@ -43,15 +43,15 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/lodash.merge": "^4.6.9",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"babel-preset-minify": "^0.5.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"npm": "^10.5.2",
"npm": "^10.6.0",
"prettier": "^3.2.5",
"rollup": "^4.14.2",
"rollup": "^4.17.1",
"rollup-plugin-serve": "^3.0.0",
"rollup-plugin-typescript2": "^0.36.0",
"typescript": "^5.4.5"
Expand Down
151 changes: 123 additions & 28 deletions src/cards/compact-card.ts

Large diffs are not rendered by default.

161 changes: 128 additions & 33 deletions src/cards/full-card.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
card_height: '396px',
card_width: '100%',
decimal_places: 2,
decimal_places_energy: 1,
dynamic_line_width: true,
max_line_width: 4,
min_line_width: 1,
Expand Down Expand Up @@ -51,6 +52,7 @@ export default {
auto_scale: true,
display_mode: 1,
dynamic_colour: true,
efficiency: 0,
},
load: {
colour: '#5fb6ad',
Expand Down
6 changes: 6 additions & 0 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class SunSynkCardEditor extends ScopedRegistryHost(LitElement) implements
{name: "show_battery", selector: {boolean: {}}},
{name: "show_grid", selector: {boolean: {}}},
{name: "decimal_places", selector: {number: {}}},
{name: "decimal_places_energy", selector: {number: {}}},
{name: "dynamic_line_width", selector: {boolean: {}}},
{name: "max_line_width", selector: {number: {}}},
{name: "min_line_width", selector: {number: {}}},
Expand Down Expand Up @@ -123,6 +124,11 @@ export class SunSynkCardEditor extends ScopedRegistryHost(LitElement) implements
{name: 'dynamic_colour', selector: {boolean: {}}},
{name: 'animation_speed', selector: {number: {}}},
{name: 'max_power', selector: {number: {}}},
{name: 'pv1_max_power', selector: {number: {}}},
{name: 'pv2_max_power', selector: {number: {}}},
{name: 'pv3_max_power', selector: {number: {}}},
{name: 'pv4_max_power', selector: {number: {}}},
{name: 'efficiency', selector: {number: {mode: 'box', min: 0, max: 3,}}},
]
}]
}, {
Expand Down
Loading

0 comments on commit ec0d556

Please sign in to comment.