UNPKG

iobroker.ecoflow-mqtt

Version:
1,540 lines (1,539 loc) 209 kB
const deviceStates = { ProtoTime: { number: { master_gridWatt: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Master Grid Power', }, /* bkpChWatt: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Backup charge power' }, */ backupDischargeTime: { min: 0, max: 180000, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Backup discharge time', }, bkpEnerg1ChargeTime: { min: 0, max: 30000, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Backup Energy#1 charge time', }, bkpEnerg1DischargeTime: { min: 0, max: 30000, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Backup Energy#1 discharge time', }, bkpEnerg2ChargeTime: { min: 0, max: 30000, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Backup Energy#2 charge time', }, bkpEnerg2DischargeTime: { min: 0, max: 30000, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Backup Energy#2 discharge time', }, wattInfoGridWatt: { min: 0, max: 24000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info grid', }, //array of 3 values wattInfoChWatt: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info channel sum', }, wattInfoChWatt1: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info channel 1', }, wattInfoChWatt2: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info channel 2', }, wattInfoChWatt3: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info channel 3', }, wattInfoAllHallWatt: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Power info all hall', }, }, string: { sysTimezone: { entity_type: 'text', entity_category: 'diagnostic', name: 'System Timezone', role: 'info', }, timezoneId: { entity_type: 'text', entity_category: 'diagnostic', name: 'System Timezone Id', role: 'info', }, appMainVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'Master app main version', role: 'info', }, appDbgVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'Master app debug version', role: 'info', }, appTestVer: { entity_type: 'text', entity_category: 'diagnostic', name: 'Master app test version', role: 'info', }, }, array: { hall1Watt: { entity_type: 'text', entity_category: 'diagnostic', role: 'list', name: 'Hall1 power' }, hall1Curr: { entity_type: 'text', entity_category: 'diagnostic', role: 'list', name: 'Hall1 current' }, bkpChWatt: { entity_type: 'text', entity_category: 'diagnostic', role: 'list', name: 'Backup charge power', }, }, }, ProtoPushAndSet: { number: { gridVol: { min: 0, max: 250, unit_of_measurement: 'V', mult: 1, entity_type: 'sensor', device_class: 'voltage', role: 'value', name: 'Grid voltage', }, gridFreq: { min: 0, max: 61, unit_of_measurement: 'Hz', mult: 1, entity_type: 'sensor', device_class: 'frequency', role: 'value', name: 'Grid Frequency', }, foceChargeHight: { min: 60, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Charge upper threshold percentage', }, chargeWattPower: { min: 0, max: 3600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Charging Power', }, discLower: { min: 0, max: 30, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Discharge lower threshold percentage', }, masterCur: { min: 0, max: 100, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'Master current', }, oilEngineWatt: { min: 0, max: 12000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Oil engine power', }, backupReserveSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Backup Reserve SOC', }, timeZone: { min: -12, max: 12, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'time zone', }, solarBackupReserveSoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Solar backup reserve SOC', }, oilMaxOutputWatt: { min: 500, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Oil max. charging output power?', }, inletBoxCurrent: { min: 0, max: 100, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'Inlet box current', }, phaseSubValue: { min: 0, max: 360, unit_of_measurement: '°', mult: 1, entity_type: 'sensor', role: 'value', name: 'phase Sub Value', }, }, switch: { epsModeInfo: { entity_type: 'switch', device_class: 'switch', payload_off: 'off', payload_on: 'on', name: 'EPS mode', role: 'switch', epsModeInfo: { 0: 'off', 1: 'on' }, }, }, diagnostic: { productType: { entity_type: 'text', entity_category: 'diagnostic', role: 'info', name: 'Product type', productType: { 0: 'GRID_OFF_LOAD12', 1: 'GRID_CONNECTED_LOAD12', 2: 'GRID_OFF_LOAD36', 3: 'GRID_CONNECTED_LOAD36', }, }, powerSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'Power Status', role: 'info', powerSta: { 0: 'LOAD_CH_EG_POWER', 1: 'LOAD_CH_ES_POWER', 2: 'LOAD_CH_OIL_POWER', 3: 'LOAD_CH_STOP_EM', 4: 'LOAD_CH_OFF_POWER', }, }, isSetOilEngine: { entity_type: 'text', entity_category: 'diagnostic', name: 'isSetOilEngine', role: 'info', isSetOilEngine: { 0: 'no generator?', 1: 'generator?' }, }, isAreaErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'Area error', role: 'info', isAreaErr: { 0: 'OK?', 1: 'Error?' }, }, ch1ForceCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch1 force charging', role: 'info', ch1ForceCharge: { 0: 'normal?', 1: 'forced?' }, }, ch2ForceCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch2 force charging', role: 'info', ch2ForceCharge: { 0: 'normal?', 1: 'forced?' }, }, ch3ForceCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch3 force charging', role: 'info', ch3ForceCharge: { 0: 'normal?', 1: 'forced?' }, }, stormIsEnable: { entity_type: 'text', entity_category: 'diagnostic', name: 'Storm is enable', role: 'info', stormIsEnable: { 0: 'off?', 1: 'on' }, }, inStormMode: { entity_type: 'text', entity_category: 'diagnostic', name: 'Storm mode', role: 'info', inStormMode: { 0: 'inactive?', 1: 'active?' }, }, ch1EnableSet: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch1 enabled', role: 'info', ch1EnableSet: { 0: 'no operation', 1: 'off', 2: 'on' }, // https://github.com/foxthefox/ioBroker.ecoflow-mqtt/issues/312 }, ch2EnableSet: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch2 enabled', role: 'info', ch2EnableSet: { 0: 'no operation', 1: 'off', 2: 'on' }, }, ch3EnableSet: { entity_type: 'text', entity_category: 'diagnostic', name: 'Ch3 enabled', role: 'info', ch3EnableSet: { 0: 'no operation', 1: 'off', 2: 'on' }, }, oilEngineToBackChargePersent: { entity_type: 'text', entity_category: 'diagnostic', name: 'Oil Engine To Back Charge Present', role: 'info', oilEngineToBackChargePersent: { 0: 'not present?', 1: 'present?' }, }, ntcOverTempErr: { entity_type: 'text', entity_category: 'diagnostic', name: 'NTC over temp error', role: 'info', ntcOverTempErr: { 0: 'OK?', 1: 'error?' }, }, smartBackupMode: { entity_type: 'text', entity_category: 'diagnostic', name: 'Smart Backup Mode', role: 'info', smartBackupMode: { 0: 'off?', 1: 'on?' }, }, oilType: { entity_type: 'text', entity_category: 'diagnostic', name: 'Oil engine type', role: 'info', oilType: { 0: '120V single phase?', 1: '240V split phase?' }, }, stormRequestFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'Storm request flag', role: 'info', stormRequestFlag: { 0: 'off?', 1: 'on?' }, }, stormCurTimeStopFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'stormCurTimeStopFlag', role: 'info', stormCurTimeStopFlag: { 0: 'off?', 1: 'on?' }, }, backupReserveEnable: { entity_type: 'text', entity_category: 'diagnostic', name: 'Backup Reserve Enable', role: 'info', backupReserveEnable: { 0: 'off?', 1: 'on?' }, }, sysCurRunningState: { entity_type: 'text', entity_category: 'diagnostic', name: 'sysCurRunningState', role: 'info', sysCurRunningState: { 0: 'off?', 1: 'on?' }, }, rly1RealSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'Relay1 Real Status', role: 'info', rly1RealSta: { 0: 'off?', 1: 'on?' }, }, rly2RealSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'Relay2 Real Status', role: 'info', rly2RealSta: { 0: 'off?', 1: 'on?' }, }, rly3RealSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'Relay3 Real Status', role: 'info', rly3RealSta: { 0: 'off?', 1: 'on?' }, }, rly4RealSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'Relay4 Real Status', role: 'info', rly4RealSta: { 0: 'off?', 1: 'on?' }, }, curRunningStrategy: { entity_type: 'text', entity_category: 'diagnostic', name: 'Current running strategy', role: 'info', curRunningStrategy: { 0: '?' }, }, reasonOfStopDischar: { entity_type: 'text', entity_category: 'diagnostic', name: 'Reason of Stop Discharge', role: 'info', reasonOfStopDischar: { 0: '?' }, }, reasonOsStopCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Reason of Stop Charge', role: 'info', reasonOsStopCharge: { 0: '?' }, }, }, string: { hasConfigDone: { entity_type: 'text', entity_category: 'diagnostic', name: 'hasConfigDone', role: 'info', }, stormEndTimestamp: { entity_type: 'text', entity_category: 'diagnostic', name: 'Storm End Timestamp', role: 'info', }, localTime: { entity_type: 'text', entity_category: 'diagnostic', name: 'local time', role: 'info', }, area: { entity_type: 'text', entity_category: 'diagnostic', name: 'Area Info', role: 'info' }, }, }, backupIncreInfo: { number: { backupFullCap: { min: 0, max: 100000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', role: 'value', name: 'Full capacity', }, backupBatPer: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, backupDischargeRmainBatCap: { min: 0, max: 20000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', role: 'value', name: 'Discharge remain. capacity', }, }, }, backupCh1Info: { diagnostic: { backupIsReady: { entity_type: 'text', entity_category: 'diagnostic', name: 'backupIsReady', role: 'info', backupIsReady: { 0: 'not ready?', 1: 'ready?' }, }, ctrlSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'ctrlSta', role: 'info', ctrlSta: { 0: 'OK?' }, }, forceChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'forceChargeSta', role: 'info', forceChargeSta: { 0: 'OK?' }, }, wakeUpChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'wakeUpChargeSta', role: 'info', wakeUpChargeSta: { 0: 'OK?' }, }, energy_5p8Type: { entity_type: 'text', entity_category: 'diagnostic', name: 'Charge type', role: 'info', energy_5p8Type: { 0: 'idle?' }, }, }, number: { backupRly1Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay1 Count', }, backupRly2Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay2 Count', }, }, }, backupCh2Info: { diagnostic: { backupIsReady: { entity_type: 'text', entity_category: 'diagnostic', name: 'backupIsReady', role: 'info', backupIsReady: { 0: 'not ready?', 1: 'ready?' }, }, ctrlSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'ctrlSta', role: 'info', ctrlSta: { 0: 'OK?' }, }, forceChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'forceChargeSta', role: 'info', forceChargeSta: { 0: 'OK?' }, }, wakeUpChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'wakeUpChargeSta', role: 'info', wakeUpChargeSta: { 0: 'OK?' }, }, energy_5p8Type: { entity_type: 'text', entity_category: 'diagnostic', name: 'Charge type', role: 'info', energy_5p8Type: { 0: 'idle?' }, }, }, number: { backupRly1Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay1 Count', }, backupRly2Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay2 Count', }, }, }, backupCh3Info: { diagnostic: { backupIsReady: { entity_type: 'text', entity_category: 'diagnostic', name: 'backupIsReady', role: 'info', backupIsReady: { 0: 'not ready?', 1: 'ready?' }, }, ctrlSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'ctrlSta', role: 'info', ctrlSta: { 0: 'OK?' }, }, forceChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'forceChargeSta', role: 'info', forceChargeSta: { 0: 'OK?' }, }, wakeUpChargeSta: { entity_type: 'text', entity_category: 'diagnostic', name: 'wakeUpChargeSta', role: 'info', wakeUpChargeSta: { 0: 'OK?' }, }, energy_5p8Type: { entity_type: 'text', entity_category: 'diagnostic', name: 'Charge type', role: 'info', energy_5p8Type: { 0: 'idle?' }, }, }, number: { backupRly1Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay1 Count', }, backupRly2Cnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Backup Relay2 Count', }, }, }, Energy1Info: { diagnostic: { isEnable: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device enabled', role: 'info', isEnable: { 0: 'off?', 1: 'on' }, }, isConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device connected', role: 'info', isConnect: { 0: 'not connected?', 1: 'connected?' }, }, isAcOpen: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC switch open', role: 'info', isAcOpen: { 0: 'off?', 1: 'on' }, }, isPowerOutput: { entity_type: 'text', entity_category: 'diagnostic', name: 'Power output', role: 'info', isPowerOutput: { 0: 'off?', 1: 'on' }, }, isGridCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Grid charge', role: 'info', isGridCharge: { 0: 'off?', 1: 'on' }, }, isMpptCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'MPPT charge', role: 'info', isMpptCharge: { 0: 'off?', 1: 'on' }, }, emsChgFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'EMS Charge flag', role: 'info', emsChgFlag: { 0: 'off?', 1: 'on' }, }, hwConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'HW connected', role: 'info', hwConnect: { 0: 'off?', 1: 'on' }, }, errorCodeNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Error code', role: 'info', errorCodeNum: { 0: 'OK?' }, }, }, number: { batteryPercentage: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, outputPower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Output power', }, emsBatTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'EMS battery temperature', }, lcdInputWatts: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Input power (LCD)', }, pvChargeWatts: { min: 0, max: 5600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Charge power', }, pvLowChargeWatts: { min: 0, max: 1600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Low charge power', }, pvHeightChargeWatts: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'High charge power', }, }, string: { oilPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Oil pack#', role: 'info', }, multPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Multo pack#', role: 'info', }, }, }, Energy2Info: { diagnostic: { isEnable: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device enabled', role: 'info', isEnable: { 0: 'off?', 1: 'on' }, }, isConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device connected', role: 'info', isConnect: { 0: 'not connected?', 1: 'connected?' }, }, isAcOpen: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC switch open', role: 'info', isAcOpen: { 0: 'off?', 1: 'on' }, }, isPowerOutput: { entity_type: 'text', entity_category: 'diagnostic', name: 'Power output', role: 'info', isPowerOutput: { 0: 'off?', 1: 'on' }, }, isGridCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Grid charge', role: 'info', isGridCharge: { 0: 'off?', 1: 'on' }, }, isMpptCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'MPPT charge', role: 'info', isMpptCharge: { 0: 'off?', 1: 'on' }, }, emsChgFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'EMS Charge flag', role: 'info', emsChgFlag: { 0: 'off?', 1: 'on' }, }, hwConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'HW connected', role: 'info', hwConnect: { 0: 'off?', 1: 'on' }, }, errorCodeNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Error code', role: 'info', errorCodeNum: { 0: 'OK?' }, }, }, number: { batteryPercentage: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, outputPower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Output power', }, emsBatTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'EMS battery temperature', }, lcdInputWatts: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Input power (LCD)', }, pvChargeWatts: { min: 0, max: 5600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Charge power', }, pvLowChargeWatts: { min: 0, max: 1600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Low charge power', }, pvHeightChargeWatts: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'High charge power', }, }, string: { oilPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Oil pack#', role: 'info', }, multPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Multo pack#', role: 'info', }, }, }, Energy3Info: { diagnostic: { isEnable: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device enabled', role: 'info', isEnable: { 0: 'off?', 1: 'on' }, }, isConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device connected', role: 'info', isConnect: { 0: 'not connected?', 1: 'connected?' }, }, isAcOpen: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC switch open', role: 'info', isAcOpen: { 0: 'off?', 1: 'on' }, }, isPowerOutput: { entity_type: 'text', entity_category: 'diagnostic', name: 'Power output', role: 'info', isPowerOutput: { 0: 'off?', 1: 'on' }, }, isGridCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'Grid charge', role: 'info', isGridCharge: { 0: 'off?', 1: 'on' }, }, isMpptCharge: { entity_type: 'text', entity_category: 'diagnostic', name: 'MPPT charge', role: 'info', isMpptCharge: { 0: 'off?', 1: 'on' }, }, emsChgFlag: { entity_type: 'text', entity_category: 'diagnostic', name: 'EMS Charge flag', role: 'info', emsChgFlag: { 0: 'off?', 1: 'on' }, }, hwConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'HW connected', role: 'info', hwConnect: { 0: 'off?', 1: 'on' }, }, errorCodeNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Error code', role: 'info', errorCodeNum: { 0: 'OK?' }, }, }, number: { batteryPercentage: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, outputPower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Output power', }, emsBatTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'EMS battery temperature', }, lcdInputWatts: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Input power (LCD)', }, pvChargeWatts: { min: 0, max: 5600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Charge power', }, pvLowChargeWatts: { min: 0, max: 1600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Low charge power', }, pvHeightChargeWatts: { min: 0, max: 4000, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'High charge power', }, }, string: { oilPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Oil pack#', role: 'info', }, multPackNum: { entity_type: 'text', entity_category: 'diagnostic', name: 'Multo pack#', role: 'info', }, }, }, DeltaPro1Info: { diagnostic: { isConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device connected', role: 'info', isConnect: { 0: 'off?', 1: 'on?' }, }, isAcOpen: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC switch open', role: 'info', isAcOpen: { 0: 'off?', 1: 'on?' }, }, pvInsertState: { entity_type: 'text', entity_category: 'diagnostic', name: 'Insert state', role: 'info', pvInsertState: { 0: 'off?', 1: 'on?' }, }, }, number: { batterySoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, fullCap: { min: 0, max: 80000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', role: 'value', name: 'Full capacity', }, ratePower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Rated power', }, outputPower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Output power', }, emsBatTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'EMS battery temperature', }, lcdInputWatts: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Input power (LCD)', }, pvLowChargeWatts: { min: 0, max: 1600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Low charge power', }, chargeTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Charge time', }, dischargeTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Discharge time', }, }, }, DeltaPro2Info: { diagnostic: { isConnect: { entity_type: 'text', entity_category: 'diagnostic', name: 'Device connected', role: 'info', isConnect: { 0: 'off?', 1: 'on?' }, }, isAcOpen: { entity_type: 'text', entity_category: 'diagnostic', name: 'AC switch open', role: 'info', isAcOpen: { 0: 'off?', 1: 'on?' }, }, pvInsertState: { entity_type: 'text', entity_category: 'diagnostic', name: 'Insert state', role: 'info', pvInsertState: { 0: 'off?', 1: 'on?' }, }, }, number: { batterySoc: { min: 0, max: 100, unit_of_measurement: '%', mult: 1, entity_type: 'sensor', device_class: 'battery', role: 'value', name: 'Battery SOC', }, fullCap: { min: 0, max: 80000, unit_of_measurement: 'mAh', mult: 1, entity_type: 'sensor', role: 'value', name: 'Full capacity', }, ratePower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Rated power', }, outputPower: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Output power', }, emsBatTemp: { min: 0, max: 80, unit_of_measurement: '°C', mult: 1, entity_type: 'sensor', device_class: 'temperature', role: 'value', name: 'EMS battery temperature', }, lcdInputWatts: { min: 0, max: 7200, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Input power (LCD)', }, pvLowChargeWatts: { min: 0, max: 1600, unit_of_measurement: 'W', mult: 1, entity_type: 'sensor', device_class: 'power', role: 'value', name: 'Low charge power', }, chargeTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Charge time', }, dischargeTime: { min: 0, max: 15999, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'Discharge time', }, }, }, loadIncreInfo: { number: { midPriorityDischargeTime: { min: 0, max: 15499, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'midPriorityDischargeTime', }, highPriorityDischargeTime: { min: 0, max: 15499, unit_of_measurement: 'min', mult: 1, entity_type: 'sensor', device_class: 'duration', role: 'value', name: 'highPriorityDischargeTime:', }, ch1Info_linkCh: { min: 0, max: 12, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Split channel number #1', }, ch1Info_setAmp: { min: 0, max: 30, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'Current setting #1', }, ch1Info_loadRlyCnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Load relay count #1', }, ch2Info_linkCh: { min: 0, max: 12, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Split channel number #2', }, ch2Info_setAmp: { min: 0, max: 30, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'Current setting #2', }, ch2Info_loadRlyCnt: { min: 0, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Load relay count #2', }, ch3Info_linkCh: { min: 0, max: 12, unit_of_measurement: '', mult: 1, entity_type: 'sensor', role: 'value', name: 'Split channel number #3', }, ch3Info_setAmp: { min: 0, max: 30, unit_of_measurement: 'A', mult: 1, entity_type: 'sensor', device_class: 'current', role: 'value', name: 'Current setting #3', }, ch3Info_loadRlyCnt: { min: 0, unit_of_measurement: '', mult: 1,