iobroker.ecoflow-mqtt
Version:
connects to ecoflow products
1,391 lines (1,387 loc) • 225 kB
JavaScript
const deviceStates = {
DisplayPropertyUpload: {
array: {
plugInInfo_4p8_1Resv: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_1 resv',
role: 'list',
},
plugInInfo_4p8_2Resv: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_2 resv',
role: 'list',
},
plugInInfo_5p8Resv: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_5p8 resv',
role: 'list',
},
},
string: {
errcode: { entity_type: 'text', entity_category: 'diagnostic', name: 'errcode', role: 'info' },
utcTimezoneId: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'utc timezone id',
role: 'info',
},
pcsFanLevel: { entity_type: 'text', entity_category: 'diagnostic', name: 'pcs fan level', role: 'info' },
plugInInfo_5p8Detail: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_5p8 detail',
role: 'info',
},
bmsErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'bms err code', role: 'info' },
plugInInfo_4p8_1Detail: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_1 detail',
role: 'info',
},
plugInInfo_4p8_2Detail: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_2 detail',
role: 'info',
},
plugInInfo_4p8_1Sn: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'SN of the device connected to the Extra Battery port',
role: 'info',
},
plugInInfo_4p8_1FirmVer: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_1 firm ver',
role: 'info',
},
plugInInfo_4p8_2Sn: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'SN of the ecosystem product connected to Extra Battery Port 2',
role: 'info',
},
plugInInfo_4p8_2FirmVer: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_2 firm ver',
role: 'info',
},
plugInInfo_5p8DsgChg: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Charging/Discharging type of the Power In/Out port',
role: 'info',
},
plugInInfo_5p8Sn: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'SN of the device connected to the Power In/Out port',
role: 'info',
},
plugInInfo_5p8FirmVer: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_5p8 firm ver',
role: 'info',
},
pdErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'pd err code', role: 'info' },
llcErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'llc err code', role: 'info' },
mpptErrCode: { entity_type: 'text', entity_category: 'diagnostic', name: 'mppt err code', role: 'info' },
plugInInfo_5p8ErrCode: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_5p8 err code',
role: 'info',
},
plugInInfo_4p8_1ErrCode: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_1 err code',
role: 'info',
},
plugInInfo_4p8_2ErrCode: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_2 err code',
role: 'info',
},
llcInvErrCode: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'llc inv err code',
role: 'info',
},
},
number: {
powInSumW: {
min: 0,
max: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Total input power',
subrole: 'number',
},
powOutSumW: {
min: 0,
max: 8000,
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',
},
powGetPvH: {
min: 0,
max: 1600,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time high-voltage PV power',
subrole: 'number',
},
powGetPvL: {
min: 0,
max: 1000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time low-voltage PV power',
subrole: 'number',
},
powGet_12v: {
min: 0,
max: 60,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time 12V power',
subrole: 'number',
},
powGet_24v: {
min: 0,
max: 400,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time 24V power',
subrole: 'number',
},
powGetLlc: {
min: 0,
max: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'pow get llc',
subrole: 'number',
},
powGetAc: {
min: 0,
max: 8000,
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: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time AC input power',
subrole: 'number',
},
powGetAcHvOut: {
min: 0,
max: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time grid power',
subrole: 'number',
},
powGetAcLvOut: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time low-voltage AC output power',
subrole: 'number',
},
powGetAcLvTt30Out: {
min: 0,
max: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time power of the low-voltage AC output port',
subrole: 'number',
},
powGet_5p8: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time power of the Power In/Out port',
subrole: 'number',
},
utcTimezone: {
min: -1200,
max: 1200,
unit_of_measurement: '',
mult: 1,
entity_type: 'sensor',
role: 'value',
name: 'utc timezone',
subrole: 'number',
},
powGetBms: {
min: 0,
max: 8000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'pow get bms',
subrole: 'number',
},
powGet_4p8_1: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time power of Extra Battery Port 1',
subrole: 'number',
},
powGet_4p8_2: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Real-time power of Extra Battery Port 2',
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',
},
plugInInfoPvHChgVolMax: {
min: 0,
max: 150,
unit_of_measurement: 'V',
mult: 1,
entity_type: 'sensor',
device_class: 'voltage',
role: 'value',
name: 'Maximum charging voltage of the high-voltage PV port',
subrole: 'number',
},
plugInInfoPvHChgAmpMax: {
min: 0,
max: 20,
unit_of_measurement: 'A',
mult: 1,
entity_type: 'sensor',
device_class: 'current',
role: 'value',
name: 'Maximum charging current of the high-voltage PV port',
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: 80000,
unit_of_measurement: 'mAh',
mult: 1,
entity_type: 'sensor',
//device_class: 'capacity',
role: 'value',
name: 'Battery capacity',
subrole: 'number',
},
bmsDsgRemTime: {
min: 0,
max: 25605,
unit_of_measurement: 'min',
mult: 1,
entity_type: 'sensor',
device_class: 'duration',
role: 'value',
name: 'Remaining discharging time',
subrole: 'number',
},
bmsChgRemTime: {
min: 0,
max: 25605,
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: 'bms 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: 'bms 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: 25605,
unit_of_measurement: 'min',
mult: 1,
entity_type: 'sensor',
device_class: 'duration',
role: 'value',
name: 'Remaining discharging time',
subrole: 'number',
},
cmsChgRemTime: {
min: 0,
max: 25605,
unit_of_measurement: 'min',
mult: 1,
entity_type: 'sensor',
device_class: 'duration',
role: 'value',
name: 'Remaining charging time',
subrole: 'number',
},
timeTaskChangeCnt: {
min: 0,
max: 60,
unit_of_measurement: '',
mult: 1,
entity_type: 'sensor',
role: 'value',
name: 'time task change cnt',
subrole: 'number',
},
generatorPvHybridModeSocMax: {
min: 0,
max: 100,
unit_of_measurement: '%',
mult: 1,
entity_type: 'sensor',
device_class: 'battery',
role: 'value',
name: 'generator pv hybrid mode soc max',
subrole: 'number',
},
generatorCareModeStartTime: {
min: 0,
max: 2000,
unit_of_measurement: 'h',
mult: 1,
entity_type: 'sensor',
device_class: 'duration',
role: 'value',
name: 'generator care mode start time',
subrole: 'number',
},
plugInInfoAcInFeq: {
min: 50,
max: 60,
unit_of_measurement: 'Hz',
mult: 1,
entity_type: 'sensor',
device_class: 'frequency',
role: 'value',
name: 'AC input frequency',
subrole: 'number',
},
plugInInfoPvLChgVolMax: {
min: 0,
max: 60,
unit_of_measurement: 'V',
mult: 1,
entity_type: 'sensor',
device_class: 'voltage',
role: 'value',
name: 'Maximum charging voltage of the low-voltage PV port',
subrole: 'number',
},
plugInInfoPvLChgAmpMax: {
min: 0,
max: 20,
unit_of_measurement: 'A',
mult: 1,
entity_type: 'sensor',
device_class: 'current',
role: 'value',
name: 'Maximum charging current of the PV port',
subrole: 'number',
},
plugInInfo_5p8DsgPowMax: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Maximum discharging power of the Power In/Out port',
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',
},
plugInInfo_5p8ChgHalPowMax: {
min: 0,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Maximum AC charging power In/Out port',
subrole: 'number',
},
plugInInfoAcInChgHalPowMax: {
min: 0,
max: 2000,
unit_of_measurement: 'W',
mult: 1,
entity_type: 'sensor',
device_class: 'power',
role: 'value',
name: 'Maximum AC charging power',
subrole: 'number',
},
},
diagnostic: {
outputPowerOffMemory: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'output power off memory',
outputPowerOffMemory: { 0: 'OFF?', 1: 'ON?' },
},
timeTaskConflictFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'time task conflict flag',
timeTaskConflictFlag: { 0: 'no conflict?', 1: 'conflict?' },
},
generatorPvHybridModeOpen: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'Generator and solar energy hybrid mode',
generatorPvHybridModeOpen: { 0: 'off', 1: 'on' },
},
generatorCareModeOpen: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'Night care mode switch',
generatorCareModeOpen: { 0: 'off', 1: 'on' },
},
fastChargeSwitch: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'Fast charging slider switch',
fastChargeSwitch: { 0: ' fast charging', 1: 'custom charging power' },
},
energyBackupState: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'energy backup state',
energyBackupState: { 0: 'OK?' },
},
energyBackupEn: {
entity_type: 'text',
entity_category: 'diagnostic',
role: 'info',
name: 'Backup reserve function switch',
energyBackupEn: { 0: 'off', 1: 'on' },
},
plugInInfoPvHFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether the high-voltage PV port is connected',
role: 'info',
plugInInfoPvHFlag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfoPvHType: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'High-voltage PV port charging mode',
role: 'info',
plugInInfoPvHType: { 1: 'car charging', 2: 'solar charging', 3: 'DC charging' },
},
plugInInfoPvLFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether the low-voltage PV port is connected',
role: 'info',
plugInInfoPvLFlag: { 0: 'disconnected', 1: 'connected' },
},
utcSetMode: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'utc set mode',
role: 'info',
utcSetMode: { 0: 'OK?' },
},
plugInInfoPvHChargerFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'PV connection status',
role: 'info',
plugInInfoPvHChargerFlag: { 0: 'disconnected', 1: 'connected' },
},
devSleepState: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Sleep status',
role: 'info',
devSleepState: { 0: 'Off?', 1: 'On?' },
},
llcHvLvFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'High-voltage/Low-voltage AC identifier',
role: 'info',
llcHvLvFlag: { 0: 'LV?', 1: 'HV?' },
},
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' },
},
acHvAlwaysOn: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Sets the High-voltage AC Always-on function',
role: 'info',
acHvAlwaysOn: { 0: 'OK?' },
},
acLvAlwaysOn: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'AC Always-on',
role: 'info',
acLvAlwaysOn: { 0: 'OK?' },
},
plugInInfoPvLType: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'PV port charging mode',
role: 'info',
plugInInfoPvLType: { 0: 'disconnected', 1: 'connected' },
},
plugInInfoAcInFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether the AC charging port is connected',
role: 'info',
plugInInfoAcInFlag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfo_5p8Flag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether the Power In/Out port is connected',
role: 'info',
plugInInfo_5p8Flag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfo_5p8Type: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_5p8 type',
role: 'info',
plugInInfo_5p8Type: { 0: 'type?' },
},
plugInInfo_4p8_1InFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether Extra Battery Port 1 is connected',
role: 'info',
plugInInfo_4p8_1InFlag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfo_4p8_1Type: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_1 type',
role: 'info',
plugInInfo_4p8_1Type: { 0: 'type?' },
},
plugInInfo_4p8_2InFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Indicates whether the Extra Battery port is connected',
role: 'info',
plugInInfo_4p8_2InFlag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfo_4p8_2Type: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'plug in info_4p8_2 type',
role: 'info',
plugInInfo_4p8_2Type: { 0: 'type?' },
},
plugInInfoPvLChargerFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Identifier of charger connection to the low-voltage PV port',
role: 'info',
plugInInfoPvLChargerFlag: { 0: 'disconnected', 1: 'connected' },
},
plugInInfo_4p8_1DsgChgType: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Charging/Discharging type of Extra Battery Port 1',
role: 'info',
plugInInfo_4p8_1DsgChgType: {
0: 'reserved',
1: 'charging/discharging',
2: 'charging only',
3: 'discharging only',
},
},
plugInInfo_4p8_2DsgChgType: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Charging/Discharging type of Extra Battery Port 2',
role: 'info',
plugInInfo_4p8_2DsgChgType: {
0: 'reserved',
1: 'charging/discharging',
2: 'charging only',
3: 'discharging only',
},
},
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?' },
},
plugInInfo_5p8ChargerFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Operating status of the device connected to the Power In/Out port',
role: 'info',
plugInInfo_5p8ChargerFlag: { 0: 'not charging?', 1: 'charging?' },
},
plugInInfo_5p8RunState: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Operating status of the device connected to the Power In/Out port',
role: 'info',
plugInInfo_5p8RunState: { 0: 'OK?' },
},
plugInInfo_4p8_1ChargerFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Identifier of charger connection to Extra Battery Port 1',
role: 'info',
plugInInfo_4p8_1ChargerFlag: { 0: 'not charging?', 1: 'charging?' },
},
plugInInfo_4p8_1RunState: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Operating status of the device connected to Extra Battery Port 1',
role: 'info',
plugInInfo_4p8_1RunState: { 0: 'OK?' },
},
plugInInfo_4p8_2ChargerFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Identifier of charger connection to Extra Battery Port 2',
role: 'info',
plugInInfo_4p8_2ChargerFlag: { 0: 'not charging?', 1: 'charging?' },
},
plugInInfo_4p8_2RunState: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Operating status of the device connected to Extra Battery Port 2',
role: 'info',
plugInInfo_4p8_2RunState: { 0: 'OK?' },
},
pcsFanErrFlag: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'pcs fan err flag',
role: 'info',
pcsFanErrFlag: { 0: 'OK?', 1: 'error' },
},
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' },
},
flowInfoPvH: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'High-voltage PV switch status',
role: 'info',
flowInfoPvH: { 0: 'off', 2: 'on' },
},
flowInfoPvL: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Low-voltage PV switch status',
role: 'info',
flowInfoPvL: { 0: 'off', 2: 'on' },
},
flowInfo_12v: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'flow info_12v',
role: 'info',
flowInfo_12v: { 0: 'off', 2: 'on' },
},
flowInfo_24v: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'flow info_24v',
role: 'info',
flowInfo_24v: { 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' },
},
flowInfoAcHvOut: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'High-voltage AC output switch status',
role: 'info',
flowInfoAcHvOut: { 0: 'off', 2: 'on' },
},
flowInfoAcLvOut: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'AC low-voltage output switch status',
role: 'info',
flowInfoAcLvOut: { 0: 'off', 2: 'on' },
},
flowInfo_5p8In: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Power In/Out port switch status',
role: 'info',
flowInfo_5p8In: { 0: 'off', 2: 'on' },
},
flowInfo_5p8Out: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Power In/Out port switch status',
role: 'info',
flowInfo_5p8Out: { 0: 'off', 2: 'on' },
},
flowInfoBmsDsg: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'flow info bms dsg',
role: 'info',
flowInfoBmsDsg: { 0: 'off', 2: 'on' },
},
flowInfoBmsChg: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'flow info bms chg',
role: 'info',
flowInfoBmsChg: { 0: 'off', 2: 'on' },
},
flowInfo_4p8_1In: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Extra Battery Port 1 input switch status',
role: 'info',
flowInfo_4p8_1In: { 0: 'off', 2: 'on' },
},
flowInfo_4p8_1Out: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Extra Battery Port 1 switch status',
role: 'info',
flowInfo_4p8_1Out: { 0: 'off', 2: 'on' },
},
flowInfo_4p8_2In: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Extra Battery Port 2 input switch status',
role: 'info',
flowInfo_4p8_2In: { 0: 'off', 2: 'on' },
},
flowInfo_4p8_2Out: {
entity_type: 'text',
entity_category: 'diagnostic',
name: 'Extra Battery port output switch status',
role: 'info',
flowInfo_4p8_2Out: { 0: 'off', 2: 'on' },
},
},
switch: {
cmsOilSelfStart: {
entity_type: 'switch',
device_class: 'switch',
payload_off: 'off',
payload_on: 'on',
name: 'Smart Generator auto start/stop switch',
role: 'switch',
cmsOilSelfStart: { 0: 'off', 1: 'on' },
},
acEnergySavingOpen: {
entity_type: 'switch',
device_class: 'switch',
payload_off: 'off',
payload_on: 'on',
name: 'AC energy-saving mode switch',
role: 'switch',
acEnergySavingOpen: { 0: 'off', 1: 'on' },
},
xboostEn: {
entity_type: 'switch',
device_class: 'switch',
payload_off: 'off',
payload_on: 'on',
name: 'X-Boost switch',
role: 'switch',
xboostEn: { 0: 'off', 1: 'on' },
},
enBeep: {
entity_type: 'switch',
device_class: 'switch',
payload_off: 'off',
payload_on: 'on',
name: 'Beeper on/off. (true: on, false: off.)',
role: 'switch',
enBeep: { 0: 'off', 1: 'on' },
},
llc_GFCIFlag: {
entity_type: 'switch',
device_class: 'switch',
payload_off: 'off',
payload_on: 'on',
name: 'GFCI switch',
role: 'switch',
llc_GFCIFlag: { 0: 'off', 1: 'on' },
},
},
level: {
cmsOilOnSoc: {
min: 0,
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',
},
lcdLight: {
min: 0,
max: 100,
unit_of_measurement: '%',
mult: 0.390625,
step: 1,
entity_type: 'number',
//device_class: 'illuminance',
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',
//30m,1h,2h,4h,6h,12h,24h,never
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',
//10s,30s,1m,5m,30m,never
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',
},
},
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',
},
//cfgBleStandbyTime: (Hours)?
//Wifi/BT timeout 1h,6h,12h,1day,7day,30day
//2592000
bleStandbyTime: {
min: 0,
max: 2592000,
unit_of_measurement: 's',
mult: 1,
step: 1,
entity_type: 'select',
device_class: 'duration',
name: 'Device timeout',
role: 'level',
subrole: 'timer',
//1h,6h,12h,1day,7day,30day
select: ['Never', '1 hr', '6 hr', '24 hr', '7 day', '30 day'],
select_obj: {
Never: 0,
'1 hr': 3600,
'6 hr': 21600,
'24 hr': 86400,
'7 day': 604800,
'30 day': 2592000,
},
states: {
0: 'Never',
3600: '1 hr',
21600: '6 hr',
86400: '24 hr',
604800: '7 day',
2592000: '30 day',
},
},
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',
//30m,1h,2h,4h,6h,12h,24h,never
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',
},
},
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',
//30m,1h,2h,4h,6h,12h,24h,never
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',
},
},
plugInInfoAcInChgPowMax: {
min: 400,
max: 2900,
unit_of_measurement: 'W',
mult: 1,
step: 1,
entity_type: 'number',
device_class: 'power',
name: 'Maximum AC input power for charging',
role: 'level',
},
plugInInfo_5p8ChgPowMax: {
min: 500,
max: 4000,
unit_of_measurement: 'W',
mult: 1,
step: 1,
entity_type: 'number',
device_class: 'power',
name: 'Maximum charging power of the Power In/Out port',
role: 'level',
},
multiBpChgDsgMode: {
min: 0,
max: 2,
unit_of_measurement: '',
mult: 1,
step: 1,
entity_type: 'select',
device_class: 'power',
name: 'Battery charging/discharging order',
role: 'level',
subrole: 'number',
select: ['default', 'automatic', 'main bat prio'],
select_obj: {
default: 0,