From 418a78a6a8caceeed3e4695c8ec01c1d2c4e2b7c Mon Sep 17 00:00:00 2001 From: Paul Orffer Date: Sun, 12 Jan 2025 14:34:59 +0200 Subject: [PATCH] fix: update missing Solax inverter status messages closes #596 --- package.json | 2 +- src/inverters/brands/solax.ts | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index a993178a..ce431806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sunsynk-power-flow-card", - "version": "6.4.0", + "version": "6.4.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": { diff --git a/src/inverters/brands/solax.ts b/src/inverters/brands/solax.ts index 516b7af1..90d97a06 100644 --- a/src/inverters/brands/solax.ts +++ b/src/inverters/brands/solax.ts @@ -7,19 +7,25 @@ export class Solax extends InverterSettingsDto { statusGroups: InverterStatus = { normal: {states: ['normal mode'], color: 'green', message: localize('common.normal')}, standby: { - states: ['waiting', 'checking', 'idle mode', 'standby'], + states: ['0', 'waiting', 'waitmode', '9', 'idle', 'idlemode', 'idle mode', '10', 'standby', 'standbymode'], color: 'blue', message: localize('common.standby') }, - selftest: {states: ['self test'], color: 'yellow', message: localize('common.selftest')}, + selftest: { + states: ['8', 'self testing', 'selftest', 'self test'], + color: 'yellow', + message: localize('common.selftest')}, offgrid: { - states: ['off-grid waiting', 'off-grid', 'eps mode'], + states: ['6', 'off-grid waiting', 'epscheckmode', '7', 'off-grid', 'epsmode', 'eps mode'], color: 'green', message: localize('common.offgrid') }, - fault: {states: ['permanent fault mode', 'fault'], color: 'red', message: localize('common.fault')}, + fault: { + states: ['4', 'permanent fault', 'permanentfaultmode', 'permanent fault mode', '3', 'fault', 'faultmode'], + color: 'red', + message: localize('common.fault')}, check: { - states: ['checking', 'update mode', 'eps check mode'], + states: ['1', 'checking', 'checkmode', '5', 'update', 'updatemode', 'update mode', 'eps check mode'], color: 'orange', message: localize('common.check') },