Skip to content

Commit

Permalink
feat: initial commit for two batteries
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Nov 20, 2024
1 parent 50bd40d commit d3f93ff
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 56 deletions.
4 changes: 2 additions & 2 deletions src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const validauxLoads = [0, 1, 2]
export const validGridDisconnected = ['off', '0', 'off-grid', 'off grid', 'offgrid']
export const validGridConnected = ['on', '1', 'on-grid', 'on grid', 'ongrid']

export const EDITOR_NAME = 'sunsynk-content-card-editor';
export const MAIN_NAME = 'sunsynk-power-flow-card';
export const EDITOR_NAME = 'sunsynk-content-card-editor-dev';
export const MAIN_NAME = 'sunsynk-power-flow-card-dev';

export const enum SensorDeviceClass {
DATE = "date",
Expand Down
17 changes: 17 additions & 0 deletions src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,23 @@ export default {
navigate:'',
invert_flow: false,
},
battery2: {
energy: 0,
soc_end_of_charge: 100,
invert_power: false,
hide_soc: false,
colour: 'pink',
show_daily: false,
show_remaining_energy: true,
show_absolute: false,
auto_scale: true,
dynamic_colour: true,
linear_gradient: true,
animate: true,
path_threshold: 100,
navigate:'',
invert_flow: false,
},
solar: {
colour: 'orange',
show_daily: false,
Expand Down
Loading

0 comments on commit d3f93ff

Please sign in to comment.