Skip to content

Commit

Permalink
Update delta_pro.py (#327)
Browse files Browse the repository at this point in the history
XBOOST and AC Enabled are merged together within the EF API, Since the update to the API version of the integration, the facility to control the AC_ENABLED was gone.

This fixes the issue
  • Loading branch information
radeonorama committed Sep 8, 2024
1 parent d98a53d commit 3bff234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/ecoflow_cloud/devices/public/delta_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def switches(self, client: EcoflowApiClient) -> list[BaseSwitchEntity]:
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "id": 38, "enabled": value}}),
EnabledEntity(client, self, "mppt.carState", const.DC_ENABLED,
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "id": 81, "enabled": value}}),
EnabledEntity(client, self, "inv.cfgAcEnabled", const.BYPASS_AC,
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "id": 84, "enabled": value}}),
EnabledEntity(client, self, "inv.cfgAcEnabled", const.AC_ENABLED,
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "id": 66, "enabled": value}}),

EnabledEntity(client, self, "inv.cfgAcXboost", const.XBOOST_ENABLED,
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "id": 66, "xboost": value}}),
Expand Down Expand Up @@ -191,4 +191,4 @@ def selects(self, client: EcoflowApiClient) -> list[BaseSelectEntity]:
TimeoutDictSelectEntity(client, self, "inv.cfgStandbyMin", const.AC_TIMEOUT, const.AC_TIMEOUT_OPTIONS,
lambda value: {"operateType": "TCP", "params": {"cmdSet": 32, "standByMins": value, "id": 153}}),

]
]

0 comments on commit 3bff234

Please sign in to comment.