-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Thanks for sharing your work.
I will make my own setup as well.
Have you checked if the credentials used from the devices to your local server are the same as the one which are used in the APP or the adapter/integrations
I would guess that it is the same, except that the devices not have an "Android-Id"
You can compare against
https://energychain.github.io/site_ecoflow_mqtt_credentials/
Interestingly the devices uses different topics
/sys/.../thing/protobuf/downstream
/sys/.../thing/rawData/downstream
/sys/.../thing/property/cmd
/sys/.../thing/property/set
than the APP:
/app/ + mqttUserId / + device +/thing/property/get_reply
/app/ + mqttUserId / + device + /thing/property/get
/app/ + mqttUserId / + device + /thing/property/set_reply
/app/ + mqttUserId / + device + /thing/property/set
/app/device/property/ + device
So it seems that the MQTT Server is processing the telegrams (some kind of merge and mirroring).
That makes it a little bit more complicated to know which topic is used for what.
Basically I think that the already discovered and implemented protobuf is used in the same way, I do not expect that the mqtt-server also translates the telegram content.
To see the mapping between the topics or better to say which is the topic to send cmds from local server to device, the local server must be in the middle. Devices subscribe and publish to local server and local server subscribes/publishes to the cloud server.
In such case the credentials are used only once from the local server and not in parallel from the devices.
If this is successful than the commands can be observed hopefully and the used topic.