Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Denied #1

Open
michaeldoll opened this issue Jul 7, 2022 · 16 comments
Open

Access Denied #1

michaeldoll opened this issue Jul 7, 2022 · 16 comments

Comments

@michaeldoll
Copy link

Hello,
when I try to establish a connection, I get
always the message Access denied.

From the support I got the following information about the API

Please check the API link below.

curl -X GET
https://api.ecoflow.com/iot-service/open/api/device/queryDeviceQuota?sn=xxxxxxxxxxxxx

-H 'Content-Type: application/json'
-H 'appKey: xxxxxxxxxxxxxxxxx'
-H 'secretKey: xxxxxxxxxxxxxxxxx'

In Ecoflow Connect I have entered the serial number of the Ecoflow Delta Max
entered. As API_key I tried the appKey and the secretKey, but I always get the message "Access denied".

@GeorgWolter
Copy link

Same problem here.

@misko85
Copy link

misko85 commented Dec 23, 2022

They have changed the API,so this extension no longer works.

@ysimonx
Copy link
Owner

ysimonx commented Dec 23, 2022

Yep ... I just received this morning the new process with key & secrets

@misko85
Copy link

misko85 commented Dec 23, 2022

This sounds like a nice gift for the new year....
Many thanks for your support

@misko85
Copy link

misko85 commented Feb 4, 2023

Is there a new status? I would be happy if it should be possible to switch the outputs.

@GeorgWolter
Copy link

GeorgWolter commented Feb 4, 2023

Is there a new status? I would be happy if it should be possible to switch the outputs.

There is a new FW v3.0.2.21 WLAN for the DELTA Pro which brings the access to the Local API back. They have reopened the necessary port again.

Access to Cloud API works fine with NodeRed.
But brings only 3 entities:
Power IN / OUT and SoC.
No switches.

@misko85
Copy link

misko85 commented Feb 6, 2023

@GeorgWolter
Where can I find informations about the local API connection? Preffered how to do that with NodeRed.
Have a Delta 2 with actual firmware.

@ysimonx
Copy link
Owner

ysimonx commented Feb 6, 2023

@misko85 @GeorgWolter
let's do the migration ;-)

@ysimonx
Copy link
Owner

ysimonx commented Feb 6, 2023

@misko85 and @GeorgWolter
i just pushed a 0.9.6 version of the node-red ecoflow node
on node-red's palette

It is not refreshed yet on the server, i am waiting for it
so i only tested the "test.js" provided in this github repo

which returns for example

{ "statusCode": 200, "payload": { "code": "0", "message": "Success", "data": { "soc": 93, "remainTime": 7957, "wattsOutSum": 5, "wattsInSum": 0 } }, "error": "" }
with a serial_number, an app_key, a secret_key

the app_key and the secret_key are provided by ecoflow's support
(for me, the email address is [email protected])

i have to close my computer now before the node-red palette is refreshed, may be you will be able to try it before me :)

regards

@misko85
Copy link

misko85 commented Feb 6, 2023

@ysimonx
It´s working
{"code":"0","message":"Success","data":{"soc":89,"remainTime":-1822,"wattsOutSum":0,"wattsInSum":0}}
But, are there only these four data that you can get? There is no option to set commands?

@ysimonx
Copy link
Owner

ysimonx commented Feb 6, 2023

Cool @misko85

This is the only request i have been informed of :

https://api.ecoflow.com/iot-service/open/api/device/queryDeviceQuota?sn=

if you hear about other endpoints, may be we will implement these ones ... have you got some informations ?

@GeorgWolter
Copy link

GeorgWolter commented Feb 6, 2023

EcoFlow Cloud API: We are only getting these 4 entities from there.
But with this integration for Home Assistant we are getting 69 (!) entities:
https://github.com/vwt12eh8/hassio-ecoflow

@ysimonx
Copy link
Owner

ysimonx commented Feb 6, 2023

Ok. I don t have much time to look. But I will asap

@misko85
Copy link

misko85 commented Feb 6, 2023

About the API,I have no further information. I only know the possibility to get data via MQTT. They are very detailed, but EcoFlow sends new data every 0.5 seconds.
The advantage of MQTT is the possibility to set parameters, like switching on or off the 220V output.
I have seen that it is also possible to set parameters via Home Assistant. But this integration uses a local API that communicates directly with the device.

@GeorgWolter
Copy link

https://youtu.be/ezn0NDc9GAY

This is what you are looking for.

@ysimonx
Copy link
Owner

ysimonx commented Feb 13, 2023

https://youtu.be/ezn0NDc9GAY

This is what you are looking for.

mqtt.ecoflow.com port 8883, interesting, thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants