UNPKG

iobroker.ecoflow-mqtt

Version:
1,446 lines 146 kB
const deviceStates = { RuntimePropertyUpload: { number: { tempPcsDc: { min: 0, max: 100, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'temp pcs dc', subrole: 'number', }, tempPcsAc: { min: 0, max: 100, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'temp pcs ac', subrole: 'number', }, plugInInfoAcOutFreq: { min: 49, max: 61, unit_of_measurement: 'Hz', mult: 1, entity_type: 'sensor', device_class: 'frequency', role: 'value', name: 'plug in info ac out freq', subrole: 'number', }, plugInInfoAcOutVol: { min: 0, max: 250, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info ac out vol', subrole: 'number', }, plugInInfoAcInVol: { min: 0, max: 250, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info ac in vol', subrole: 'number', }, plugInInfoBmsVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info main battery vol', subrole: 'number', }, plugInInfoAcInAmp: { min: 0, max: 10, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info ac in amp', subrole: 'number', }, plugInInfoAcOutAmp: { min: 0, max: 10, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info ac out amp', subrole: 'number', }, bmsBattVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'main battery batt vol', subrole: 'number', }, bmsBattAmp: { min: -80, max: 80, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'main battery batt amp', subrole: 'number', }, bmsFullCap: { min: 0, max: 20000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', //device_class: 'capacity', role: 'value', name: 'main battery full cap', subrole: 'number', }, bmsRemainCap: { min: 0, max: 20000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', //device_class: 'capacity', role: 'value', name: 'main battery remain cap', subrole: 'number', }, bmsMinCellVol: { min: 0, max: 5, unit_of_measurement: 'V', mult: 0.001, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'Minimum voltage of the main battery', subrole: 'number', }, bmsMaxCellVol: { min: 0, max: 5, unit_of_measurement: 'V', mult: 0.001, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'main battery max cell vol', subrole: 'number', }, cmsBattVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'cms batt vol', subrole: 'number', }, cmsBattAmp: { min: -80, max: 80, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'cms batt amp', subrole: 'number', }, cmsChgReqVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'cms chg req vol', subrole: 'number', }, cmsChgReqAmp: { min: 0, max: 60, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'cms chg req amp', subrole: 'number', }, runtimePropertyFullUploadPeriod: { min: 0, unit_of_measurement: 's', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'runtime property full upload period', subrole: 'number', }, runtimePropertyIncrementalUploadPeriod: { min: 0, unit_of_measurement: 's', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'runtime property incremental upload period', subrole: 'number', }, tempPv: { min: 0, max: 100, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'temp pv', subrole: 'number', }, plugInInfoPvVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info pv vol', subrole: 'number', }, plugInInfoPvAmp: { min: 0, max: 15, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info pv amp', subrole: 'number', }, plugInInfoDcpVol: { min: 0, max: 60, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info dcp vol', subrole: 'number', }, plugInInfoDcpAmp: { min: 0, max: 15, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info dcp amp', subrole: 'number', }, }, diagnostic: { plugInInfoAcOutType: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info ac out type', role: 'info', plugInInfoAcOutType: { 0: 'OK?' }, }, bmsBalState: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery bal state', role: 'info', bmsBalState: { 0: 'OK?' }, }, bmsAlmState: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery alm state', role: 'info', bmsAlmState: { 0: 'OK?' }, }, bmsProState: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery pro state', role: 'info', bmsProState: { 0: 'OK?' }, }, bmsFltState: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery flt state', role: 'info', bmsFltState: { 0: 'OK?' }, }, bmsAlmState_2: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery alm state_2', role: 'info', bmsAlmState_2: { 0: 'OK?' }, }, bmsProState_2: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery pro state_2', role: 'info', bmsProState_2: { 0: 'OK?' }, }, }, string: { pdBmsCommErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd main battery comm err', role: 'info', }, pdIotCommErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd iot comm err', role: 'info' }, pdFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd firm ver', role: 'info' }, iotFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'iot firm ver', role: 'info' }, bmsFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery firm ver', role: 'info', }, bmsErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery err code', role: 'info', }, displayPropertyFullUploadPeriod: { entity_type: 'text', entity_category: 'diagnostic', name: 'display property full upload period', role: 'info', }, displayPropertyIncrementalUploadPeriod: { entity_type: 'text', entity_category: 'diagnostic', name: 'display property incremental upload period', role: 'info', }, pdDcdcCommErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd dcdc comm err', role: 'info', }, pdInvCommErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd inv comm err', role: 'info' }, dcdcFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'dcdc firm ver', role: 'info' }, invFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'inv firm ver', role: 'info' }, }, icon: { bmsOverloadIcon: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery overload icon', role: 'info', bmsOverloadIcon: { 0: 'OK?' }, }, bmsWarnIcon: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery warn icon', role: 'info', bmsWarnIcon: { 0: 'OK?' }, }, bmsHighTempIcon: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'main batterys high temp icon', bmsHighTempIcon: { 0: 'OK?' }, }, bmsLowTempIcon: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'main battery low temp icon', bmsLowTempIcon: { 0: 'OK?' }, }, bmsLimitIcon: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery limit icon', role: 'info', bmsLimitIcon: { 0: 'OK?' }, }, }, }, DisplayPropertyUpload: { array: { timeTaskCurrent: { entity_type: 'text', entity_category: 'diagnostic', role: 'list', name: 'time task current', }, energyStrategyOperateMode: { entity_type: 'text', entity_category: 'diagnostic', role: 'list', name: 'Energy Strategy Operate Mode', // 1: 'self_powered_open', 2: 'scheduled_open', 3: 'tou_mode_open' }, }, string: { errcode: { entity_type: 'text', entity_category: 'diagnostic', name: 'errcode', role: 'info' }, pcsFanLevel: { entity_type: 'text', entity_category: 'diagnostic', name: 'pcs fan level', role: 'info' }, pvDcChgSettingList: { entity_type: 'text', entity_category: 'diagnostic', name: 'pv dc chg setting list', role: 'info', }, utcTimezoneId: { entity_type: 'text', entity_category: 'diagnostic', name: 'utc timezone id', role: 'info', }, plugInInfoPvChgMaxList: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info pv chg max list', role: 'info', }, bmsErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'main battery err code', role: 'info', }, wirelessCoordinateDevList: { entity_type: 'text', entity_category: 'diagnostic', name: 'wireless coordinate dev list', role: 'info', }, wirelessOilSelfStart: { entity_type: 'text', entity_category: 'diagnostic', name: 'wireless oil self start', role: 'info', }, bypassOutDisable: { entity_type: 'text', entity_category: 'diagnostic', name: 'bypass out disable', role: 'info', }, pdErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd err code', role: 'info' }, plugInInfoDcpDetail: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp detail', role: 'info', }, plugInInfoDcpResv: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp resv', role: 'info', }, plugInInfoDcpSn: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp sn', role: 'info', }, plugInInfoDcpFirmVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp firm ver', role: 'info', }, dcdcErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'dcdc err code', role: 'info' }, plugInInfoDcpErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp err code', role: 'info', }, invErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'inv err code', role: 'info' }, selfPoweredConflictFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'Self Powered Conflict Flag', role: 'info', }, touModeConflictFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'TOU Mode Conflict Flag', role: 'info', }, }, number: { backupReverseSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Backup Reserve Soc', subrole: 'number', }, powInSumW: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Total input power', subrole: 'number', }, powOutSumW: { min: 0, max: 1200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Total output power', subrole: 'number', }, energyBackupStartSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Backup reserve level', subrole: 'number', }, powGetQcusb1: { min: 0, max: 120, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time power of the USB 1 port', subrole: 'number', }, powGetQcusb2: { min: 0, max: 120, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time power of the USB 2 port', subrole: 'number', }, powGetTypec1: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time power of Type-C port 1', subrole: 'number', }, powGetTypec2: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time power of Type-C port 2', subrole: 'number', }, acAlwaysOnMiniSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Sets the minimum SOC to enable the AC Always-on function', subrole: 'number', }, powGet_12v: { min: 0, max: 150, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time 12V power', subrole: 'number', }, powGetAc: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time AC power', subrole: 'number', }, powGetAcIn: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Real-time AC input power', subrole: 'number', }, plugInInfoAcInFeq: { min: 49, max: 61, unit_of_measurement: 'Hz', mult: 1, entity_type: 'sensor', device_class: 'frequency', role: 'value', name: 'AC input frequency', subrole: 'number', }, utcTimezone: { min: -1200, max: 1200, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'utc timezone', subrole: 'number', }, wirelessOilOnSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'wireless oil on soc', subrole: 'number', }, wirelessOilOffSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'wireless oil off soc', subrole: 'number', }, powGetBms: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'pow get bms', subrole: 'number', }, acOutFreq: { min: 49, max: 61, unit_of_measurement: 'Hz', mult: 1, entity_type: 'sensor', device_class: 'frequency', role: 'value', name: 'AC output frequency', subrole: 'number', }, plugInInfoAcOutDsgPowMax: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Maximum AC discharging power', subrole: 'number', }, bmsBattSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'SOC of the main battery', subrole: 'number', }, bmsBattSoh: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'SOH of the main battery', subrole: 'number', }, bmsDesignCap: { min: 0, max: 20000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', //device_class: 'capacity', role: 'value', name: 'Battery capacity', subrole: 'number', }, bmsDsgRemTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Remaining discharging time', subrole: 'number', }, bmsChgRemTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Remaining charging time of the main battery', subrole: 'number', }, bmsMinCellTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'Minimum temperature of the main battery', subrole: 'number', }, bmsMaxCellTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'Temperature of the main battery', subrole: 'number', }, bmsMinMosTemp: { min: 0, max: 100, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'main battery min mos temp', subrole: 'number', }, bmsMaxMosTemp: { min: 0, max: 100, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'main battery max mos temp', subrole: 'number', }, cmsBattSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Overall SOC', subrole: 'number', }, cmsBattSoh: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Overall SOH', subrole: 'number', }, cmsDsgRemTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Remaining discharging time', subrole: 'number', }, cmsChgRemTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Remaining charging time', subrole: 'number', }, timeTaskChangeCnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'time task change cnt', subrole: 'number', }, powGetDc: { min: 0, max: 150, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'pow get dc', subrole: 'number', }, plugInInfoPvDcAmpMax: { min: 0, max: 15, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info pv dc amp max', subrole: 'number', }, powGetPv: { min: 0, max: 600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'pow get pv', subrole: 'number', }, plugInInfoPvChgAmpMax: { min: 0, max: 15, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'plug in info pv chg amp max', subrole: 'number', }, plugInInfoPvChgVolMax: { min: 0, max: 61, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'plug in info pv chg vol max', subrole: 'number', }, powGetAcOut: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'pow get ac out', subrole: 'number', }, powGetDcp: { min: 0, max: 600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'pow get dcp', subrole: 'number', }, cmsBattPowOutMax: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'cms batt pow out max', subrole: 'number', }, cmsBattPowInMax: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'cms batt pow in max', subrole: 'number', }, cmsBattFullEnergy: { min: 0, max: 1024, unit_of_measurement: 'Wh', mult: 1, entity_type: 'sensor', device_class: 'energy', role: 'value', name: 'cms batt full energy', subrole: 'number', }, stormPatternEndTime: { min: 0, max: 60, unit_of_measurement: 'h', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'storm pattern end time', subrole: 'number', }, }, level: { lcdLight: { min: 0, max: 100, unit_of_measurement: '%', mult: 0.390625, step: 1, entity_type: 'number', //device_class: 'brightness', name: 'Screen brightness', role: 'level', subrole: 'number', }, devStandbyTime: { min: 0, max: 1440, unit_of_measurement: 'min', mult: 1, step: 1, entity_type: 'select', device_class: 'duration', name: 'Device timeout (min)', role: 'level', subrole: 'timer', select: ['Never', '30 min', '1 hr', '2 hr', '4 hr', '6 hr', '12 hr', '24 hr'], select_obj: { Never: 0, '30 min': 30, '1 hr': 60, '2 hr': 120, '4 hr': 240, '6 hr': 360, '12 hr': 720, '24 hr': 1440, }, states: { 0: 'Never', 30: '30 min', 60: '1 hr', 120: '2 hr', 240: '4 hr', 360: '6 hr', 720: '12 hr', 1440: '24 hr', }, }, screenOffTime: { min: 0, max: 1800, unit_of_measurement: 's', mult: 1, step: 1, entity_type: 'select', device_class: 'duration', name: 'Screen timeout (s)', role: 'level', subrole: 'timer', select: ['Never', '10 s', '30 s', '1 min', '5 min', '30 min'], select_obj: { Never: 0, '10 s': 10, '30 s': 30, '1 min': 60, '5 min': 300, '30 min': 1800 }, states: { 0: 'Never', 10: '10 s', 30: '30 s', 60: '1 min', 300: '5 min', 1800: '30 min' }, }, acStandbyTime: { min: 0, max: 1440, unit_of_measurement: 'min', mult: 1, step: 1, entity_type: 'select', device_class: 'duration', name: 'AC timeout (min)', role: 'level', subrole: 'timer', select: ['Never', '30 min', '1 hr', '2 hr', '6 hr', '12 hr', '24 hr'], select_obj: { Never: 0, '30 min': 30, '1 hr': 60, '2 hr': 120, '6 hr': 360, '12 hr': 720, '24 hr': 1440, }, states: { 0: 'Never', 30: '30 min', 60: '1 hr', 120: '2 hr', 360: '6 hr', 720: '12 hr', 1440: '24 hr', }, }, dcStandbyTime: { min: 0, max: 1440, unit_of_measurement: 'min', mult: 1, step: 1, entity_type: 'select', device_class: 'duration', name: 'DC timeout (min)', role: 'level', subrole: 'timer', select: ['Never', '30 min', '1 hr', '2 hr', '4 hr', '6 hr', '12 hr', '24 hr'], select_obj: { Never: 0, '30 min': 30, '1 hr': 60, '2 hr': 120, '4 hr': 240, '6 hr': 360, '12 hr': 720, '24 hr': 1440, }, states: { 0: 'Never', 30: '30 min', 60: '1 hr', 120: '2 hr', 240: '4 hr', 360: '6 hr', 720: '12 hr', 1440: '24 hr', }, }, plugInInfoAcInChgPowMax: { min: 100, max: 1500, unit_of_measurement: 'W', mult: 1, step: 100, entity_type: 'number', device_class: 'power', name: 'Maximum AC input power for charging', role: 'level', }, plugInInfoAcInChgMode: { min: 0, max: 2, mult: 1, step: 1, unit_of_measurement: '', entity_type: 'select', name: 'plug in info ac in chg mode', role: 'level', select: ['user defined', 'battery optimum', 'silence'], select_obj: { 'user defined': 0, 'battery optimum': 1, silence: 2, }, states: { 0: 'user defined', 1: 'battery optimum', 2: 'silence', }, }, cmsMaxChgSoc: { min: 50, max: 100, unit_of_measurement: '%', mult: 1, step: 1, entity_type: 'number', device_class: 'battery', name: 'Charge limit', role: 'level', }, cmsMinDsgSoc: { min: 0, max: 30, unit_of_measurement: '%', mult: 1, step: 1, entity_type: 'number', device_class: 'battery', name: 'Discharge limit', role: 'level', }, cmsOilOnSoc: { min: 10, max: 30, unit_of_measurement: '%', mult: 1, step: 1, entity_type: 'number', device_class: 'battery', name: 'SOC for automatically starting the Smart Generator', role: 'level', }, cmsOilOffSoc: { min: 50, max: 100, unit_of_measurement: '%', mult: 1, step: 1, entity_type: 'number', device_class: 'battery', name: 'SOC for automatically stopping the Smart Generator', role: 'level', }, }, diagnostic: { energyBackupEn: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'Backup reserve function switch', energyBackupEn: { 0: 'off', 1: 'on' }, }, flowInfoQcusb1: { entity_type: 'text', entity_category: 'diagnostic', name: 'USB output port 1 switch status', role: 'info', flowInfoQcusb1: { 0: 'off', 2: 'on' }, }, flowInfoQcusb2: { entity_type: 'text', entity_category: 'diagnostic', name: 'USB output port 2 switch status', role: 'info', flowInfoQcusb2: { 0: 'off', 2: 'on' }, }, flowInfoTypec1: { entity_type: 'text', entity_category: 'diagnostic', name: 'Type-C port 1 switch status', role: 'info', flowInfoTypec1: { 0: 'off', 2: 'on' }, }, flowInfoTypec2: { entity_type: 'text', entity_category: 'diagnostic', name: 'Type-C port 2 switch status', role: 'info', flowInfoTypec2: { 0: 'off', 2: 'on' }, }, acAlwaysOnFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'ac always on flag', role: 'info', acAlwaysOnFlag: { 0: 'OK?' }, }, flowInfo_12v: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info_12v', role: 'info', flowInfo_12v: { 0: 'off', 2: 'on' }, }, flowInfoAc2dc: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info ac2dc', role: 'info', flowInfoAc2dc: { 0: 'off', 2: 'on' }, }, flowInfoDc2ac: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info dc2ac', role: 'info', flowInfoDc2ac: { 0: 'off', 2: 'on' }, }, flowInfoAcIn: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC input switch status', role: 'info', flowInfoAcIn: { 0: 'off', 2: 'on' }, }, plugInInfoAcInFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'Indicates whether the AC charging port is connected', role: 'info', plugInInfoAcInFlag: { 0: 'disconnected', 1: 'connected' }, }, utcSetMode: { entity_type: 'text', entity_category: 'diagnostic', name: 'utc set mode', role: 'info', utcSetMode: { 0: 'OK?' }, }, outputPowerOffMemory: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'output power off memory', outputPowerOffMemory: { 0: 'OFF?', 1: 'ON?' }, }, flowInfoBmsDsg: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info main battery dsg', role: 'info', flowInfoBmsDsg: { 0: 'off', 2: 'on' }, }, flowInfoBmsChg: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info main battery chg', role: 'info', flowInfoBmsChg: { 0: 'off', 2: 'on' }, }, fastChargeSwitch: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'Fast charging slider switch', fastChargeSwitch: { 0: ' fast charging', 1: 'custom charging power' }, }, plugInInfoAcChargerFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'Indicates whether the charger is connected to the AC port', role: 'info', plugInInfoAcChargerFlag: { 0: 'not charging?', 1: 'charging?' }, }, devSleepState: { entity_type: 'text', entity_category: 'diagnostic', name: 'Sleep status', role: 'info', devSleepState: { 0: 'Off?', 1: 'On?' }, }, pcsFanErrFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'pcs fan err flag', role: 'info', pcsFanErrFlag: { 0: 'OK?', 1: 'error' }, }, cmsBmsRunState: { entity_type: 'text', entity_category: 'diagnostic', name: 'On/Off status', role: 'info', cmsBmsRunState: { 0: 'off', 1: 'on' }, }, bmsChgDsgState: { entity_type: 'text', entity_category: 'diagnostic', name: 'Charging/Discharging status of the main battery', role: 'info', bmsChgDsgState: { 0: 'not charging or discharging', 1: 'discharging', 2: 'charging' }, }, cmsChgDsgState: { entity_type: 'text', entity_category: 'diagnostic', name: 'Charging/Discharging status', role: 'info', cmsChgDsgState: { 0: 'not charging or discharging', 1: 'discharging', 2: 'charging' }, }, timeTaskConflictFlag: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'time task conflict flag', timeTaskConflictFlag: { 0: 'no conflict?', 1: 'conflict?' }, }, flowInfoPv: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info pv', role: 'info', flowInfoPv: { 0: 'OK?' }, }, plugInInfoPvFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info pv flag', role: 'info', plugInInfoPvFlag: { 0: 'OK?' }, }, plugInInfoPvType: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info pv type', role: 'info', plugInInfoPvType: { 0: 'OK?' }, }, plugInInfoPvChargerFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info pv charger flag', role: 'info', plugInInfoPvChargerFlag: { 0: 'OK?' }, }, flowInfoAcOut: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info ac out', role: 'info', flowInfoAcOut: { 0: 'OK?' }, }, flowInfoDcpIn: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info dcp in', role: 'info', flowInfoDcpIn: { 0: 'OK?' }, }, flowInfoDcpOut: { entity_type: 'text', entity_category: 'diagnostic', name: 'flow info dcp out', role: 'info', flowInfoDcpOut: { 0: 'OK?' }, }, plugInInfoDcpInFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp in flag', role: 'info', plugInInfoDcpInFlag: { 0: 'OK?' }, }, plugInInfoDcpType: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp type', role: 'info', plugInInfoDcpType: { 0: 'OK?' }, }, plugInInfoDcpDsgChgType: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp dsg chg type', role: 'info', plugInInfoDcpDsgChgType: { 0: 'OK?' }, }, plugInInfoDcpChargerFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp charger flag', role: 'info', plugInInfoDcpChargerFlag: { 0: 'OK?' }, }, plugInInfoDcpRunState: { entity_type: 'text', entity_category: 'diagnostic', name: 'plug in info dcp run state', role: '