svenerbe / ecoflow_dynamic_power_adjustment

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

Problem with HA 2024.06 #27

Open rgerhards opened 4 days ago

rgerhards commented 4 days ago

Thanks for this script! I am trying to use it with HA 2024.06, and get the following error in home-assistant.log:

2024-06-30 14:11:11.174 ERROR (MainThread) [custom_components.pyscript.file.set_ef_powerstream_custom_load_power.set_ef_powerstream_custom_load_power] Exception in <file.set_ef_powerstream_custom_load_power.set_ef_powerstream_custom_load_power> line 63:
      response = task.executor(requests.get, url, headers=headers, json=params)
                                             ^
InvalidHeader: Header part (('sdkasdjasdhf',)) from ('accessKey', ('sfsf',)) must be of type str or bytes, not <class 'tuple'>

Is this a known issue?

svenerbe commented 3 days ago

you are sure that you use right key and secret?

EcoFlow Access Credentials: Additionally, you'll require the EcoFlow AccessKey and SecretKey, obtainable through a request at EcoFlow Developer Portal. These credentials are necessary for authenticating API requests with the EcoFlow platform.