svenerbe / ecoflow_dynamic_power_adjustment

Service Description: EcoFlow Device API Integration for Power Stream Control
44 stars 3 forks source link

Change power supply mode #5

Closed MhlTheOne closed 1 month ago

MhlTheOne commented 2 months ago

It would be very nice if you could switch the power supply mode between power supply and power storage.

MhlTheOne commented 2 months ago

I use the following workaround: I set the automation on false. But here is some stupid behavior from Ecostream: If solar input more than 600W, it will be throttled, because the it's limited to battery.

For this case i decided to set and increase an fix PermanentWatts value. For this i use automation false with value and change the following lines: if not Automation: NewPermanentWatts= 0 in: if not Automation: NewPermanentWatts = TotalPower * 10

svenerbe commented 1 month ago

i'm not sure if this is a good idea todo this in this script - in my case i run the script every 5 sec. changing of supply mode must be done outside of this script. maybe you can use this script and create a new one to change supply mode.

you can do that with the following SetCmdRequest: {"sn": "HW513000SF767194","cmdCode": "WN511_SET_SUPPLY_PRIORITY_PACK","params": {"supplyPriority": 0}}

svenerbe commented 1 month ago

not an issue

MhlTheOne commented 1 month ago

I don't need to change the supply priority anymore, because I use above workaround to set an fix new output.