Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue#438 & idea#444 add Victron status codes #448

Merged
merged 10 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

19 changes: 14 additions & 5 deletions src/inverters/brands/victron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ import {localize} from '../../localize/localize';
export class Victron extends InverterSettingsDto {
brand = InverterModel.Victron;
statusGroups: InverterStatus = {
standby: {states: ['0', 'standby', 'stand-by'], color: 'blue', message: localize('common.standby')},
selftest: {states: ['1', 'selftest', 'self-checking'], color: 'yellow', message: localize('common.selftest')},
normal: {states: ['2', 'normal', 'ok'], color: 'green', message: localize('common.normal')},
alarm: {states: ['3', 'alarm'], color: 'orange', message: localize('common.alarm')},
fault: {states: ['4', 'fault'], color: 'red', message: localize('common.fault')},
off: {states: ['0', 'off'], color: 'red', message: localize('common.off')},
lowpower: {states: ['1', 'low power'], color: 'yellow', message: localize('common.lowpower')},
fault: {states: ['2', 'fault'], color: 'red', message: localize('common.fault')},
bulk: {states: ['3', 'bulk'], color: 'green', message: localize('common.bulk')},
absorption: {states: ['4', 'absorption'], color: 'green', message: localize('common.absorption')},
float: {states: ['5', 'float'], color: 'green', message: localize('common.float')},
storage: {states: ['6', 'storage'], color: 'green', message: localize('common.storage')},
equalize: {states: ['7', 'equalize'], color: 'green', message: localize('common.equalize')},
passthru: {states: ['8', 'passthru'], color: 'green', message: localize('common.passthru')},
inverting: {states: ['9', 'inverting'], color: 'blue', message: localize('common.inverting')},
powerassist: {states: ['10', 'power assist'], color: 'blue', message: localize('common.powerassist')},
powersupply: {states: ['11', 'power supply'], color: 'blue', message: localize('common.powersupply')},
sustain: {states: ['244', 'sustain'], color: 'green', message: localize('common.sustain')},
externalcontrol: {states: ['252', 'external control'], color: 'green', message: localize('common.externalcontrol')},
}
image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAABICAYAAABWWr1vAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABgBSURBVGhDZVtprF3VdV7nnDu+5/f8no3tZ2PAmNhmMKkNCAURCFWiFqia0DCoVSq1QWmRKrWVKlWR0kFVRKv+6Q/6o4qiNr9QJIoqRCapVdQ0apumjA7FGGNjDB7fPL87nnP6fd/a+95rWPfus9de81p7n32G+17y0Bd+Zeb82TPPF3neLMtyPEmS8aIomhPTOyuVe5/6q+51t7fS2pglaWqJJWWJIyGxAuJFQQxEfEWFCBqF0EMyAZ1jgyA10ICgz0kD0fVgQBZN9GgspQUaTZI0S4oktTK17ma689JPvrD4yve/XPR7W1madBDIVpqm7TTLPnzwoQcfSY7dffdXrl64+LzbcfOEfPt+a9/xuKUzRy2tN+mC5sWjU3eHUDCIAY2CMgEoP1l1XVIIzFZWIjnipEc/IBCVKA9lYWWvbf1Lb9nYyRctW7kg2ZSqjA9Ce/bOPJ41G42/7Ha7tyNbBRaqZN1t+6zYd9zSid1WZjVoVdAyK9HUw2FpqJ3GDII8Ju7N6XEsr6EFOjPA7BPHPMiWywb7WhlxDFw8NvhFkP3lC1bfvCpcCaNKKlxpO5OHH36kNTs33+BKcj5YULw4edQ69/2RNXbscYMA6kYZfhljLAJQLTGfgSAjauzj0YG6pJA7lCAAc6Y6phaZKiQTam1Z8YsX7Zbz/wx/SJ0FwHQx7pmZPTlWVjOv1WrWHBtDa1qj2bR6vW61+phlzSmrj21DG7fG+DZrjrMft3rTadXmuNXQswlveO9tm1UaY2jj6qvCx1wm0DMs62poFbS01rSs1kCrW1WtYRX0bBpXa2oZGuVZbCWj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uO/U/DPFfRX/WiOo0GXfaSxuqRpVv3rQIR2ITPg4WQl7vruN86m7uSpEmgw7jhoiwuz92XVWuO5bre7W9MNIo8MfnNj3Sr6HwpcvyENu8JpRI0EydKwBz3gDRr9gScZjkcTCnzwBmPh3CHp04skvaAvNj58kdput/TvGwQuQV70uZu2Wu0doCc1OuOLyqzCAEJqQZBVcXNUxnJgIgrCHWlG2AJOHvMVjUUBwRNCC3zX9QBlIyQ7bLRBrssSOEPEdYEBzlXFxpdBOvcYNiDHUoVuWonBOMPvrGTwGquhHwGxKMQA1IiyLEERzjT/kU95cigYwM26nAfn/aCJH3XI5/kMD4iZpwnPV9EoAz5PmxTrleBEdFxtXn1fAuSIzQsSRjINRc5ifBeoNMjHl7LBnAPJcHpNoByTEWB0NRBcHgGLzhIFPV2VAPKBcy3zc1ZjhouYFfaRI4dPtVvtW5k51Rg2l+PGxob+IaQS/kMn8vgF6r06yjMQHzu40EjYaNIOwTnEcQQGqkeNAMHFJ4AyfeyQtVodI8gHm9RvNBpvJJ994P6/WF1Z+SZ/UGu329brccvEzeNWy3rcSgGshn4FCU7Z0wgD4vkQrxkE0hQcbKggIH88ONogf1SHK4O0aNujdB53T+rEnh/aRgLyz2tso1m38fExm9qx4w+S33n66amN1ZUfLi8vjyORJMuyiTzPUzhY2b9//8twRs+4i/EA2A/wEPEoT4CAfHcUDTcxOCLWXr+fY0PCDfxQj59+v5djB+5WKtV0q7XVFp0KSIAw3AXxgd35+fm9Cwvzv4dLUsINrtfrrTUbzWJqavKN24/e8dT/AxnuSvOufIunAAAAAElFTkSuQmCC';
}
15 changes: 14 additions & 1 deletion src/inverters/dto/inverter-settings.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,20 @@ export enum InverterStatuses {
Flash = 'flash',
Offline = 'offline',
Running = 'running',
SleepMode = 'sleepmode'
SleepMode = 'sleepmode',
Off = 'off',
LowPower = 'lowpower',
Bulk = 'bulk',
Absorption = 'absorption',
Float = 'float',
Storage = 'storage',
Equalize = 'equalize',
Passthru = 'passthru',
Inverting = 'inverting',
PowerAssist = 'powerassist',
PowerSupply = 'powersupply',
Sustain = 'sustain',
ExternalControl = 'externalcontrol'
}

export interface InverterStatusConfig {
Expand Down
15 changes: 14 additions & 1 deletion src/localize/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,20 @@
"running": "Running",
"sleepmode": "Sleep Mode",
"grid_name": "Grid",
"limit": "Limit"
"limit": "Limit",
"off": "Off",
"lowpower": "Low Power",
"bulk": "Bulk",
"absorption": "Absorption",
"float": "Float",
"storage": "Storage",
"equalize": "Equalize",
"passthru": "Passthru",
"inverting": "Inverting",
"powerassist": "Power Assist",
"powersupply": "Power Supply",
"sustain": "Sustain",
"externalcontrol": "External Control"
},
"errors": {
"battery": {
Expand Down
Loading
Loading