Skip to content

Commit

Permalink
wave2 corr (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxthefox committed Jan 19, 2024
1 parent a2803da commit c6555b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion custom_components/ecoflow_cloud/config/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EcoflowModel(Enum):
DELTA_MINI = 15, # productType = 15
POWERSTREAM = 51,
GLACIER = 46,
WAVE_2 = 42, # eventually wrong
WAVE_2 = 45, # productType = 45
DIAGNOSTIC = 99

@classmethod
Expand Down
16 changes: 8 additions & 8 deletions custom_components/ecoflow_cloud/devices/wave2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class Wave2(BaseDevice):
def sensors(self, client: EcoflowMQTTClient) -> list[BaseSensorEntity]:
return [
# Power and Battery Entities
LevelSensorEntity(client, "bms_bmsStatus.soc", const.MAIN_BATTERY_LEVEL)
.attr("bms_bmsStatus.remainCap", const.ATTR_REMAIN_CAPACITY, 0),
CapacitySensorEntity(client, "bms_bmsStatus.remainCap", const.MAIN_REMAIN_CAPACITY, False),
LevelSensorEntity(client, "bms.soc", const.MAIN_BATTERY_LEVEL)
.attr("bms.remainCap", const.ATTR_REMAIN_CAPACITY, 0),
CapacitySensorEntity(client, "bms.remainCap", const.MAIN_REMAIN_CAPACITY, False),

TempSensorEntity(client, "bms_bmsStatus.tmp", const.BATTERY_TEMP)
.attr("bms_bmsStatus.minCellTemp", const.ATTR_MIN_CELL_TEMP, 0)
.attr("bms_bmsStatus.maxCellTemp", const.ATTR_MAX_CELL_TEMP, 0),
TempSensorEntity(client, "bms_bmsStatus.minCellTmp", const.MIN_CELL_TEMP, False),
TempSensorEntity(client, "bms_bmsStatus.maxCellTmp", const.MAX_CELL_TEMP, False),
TempSensorEntity(client, "bms.tmp", const.BATTERY_TEMP)
.attr("bms.minCellTemp", const.ATTR_MIN_CELL_TEMP, 0)
.attr("bms.maxCellTemp", const.ATTR_MAX_CELL_TEMP, 0),
TempSensorEntity(client, "bms.minCellTmp", const.MIN_CELL_TEMP, False),
TempSensorEntity(client, "bms.maxCellTmp", const.MAX_CELL_TEMP, False),

RemainSensorEntity(client, "pd.batChgRemain", const.CHARGE_REMAINING_TIME),
RemainSensorEntity(client, "pd.batDsgRemain", const.DISCHARGE_REMAINING_TIME),
Expand Down

0 comments on commit c6555b6

Please sign in to comment.