Mobile App API - danielfernau/ha-ecoflow-powerocean GitHub Wiki

API

⚠️ The following requests and responses have been captured using an application debugging proxy against the iOS app. This is not an official API, neither is this documentation of it. Use with caution as it might change at any time. ⚠️

API base: https://api-e.ecoflow.com/iot-service/, where api-e is used for Europe and api-a is used for USA

device

property

Returns general information about the device by its serial number

GET https://api-e.ecoflow.com/iot-service/device/property?sn=HJ37ZDH5********

{
  "code": "0",
  "message": "Success",
  "data": {
    "setupComplete": "2",
    "timezone": "Europe/Berlin",
    "timeZoneOffSet": "+02:00",
    "utcOffset": 7200000,
    "country": "Germany",
    "countryCode": "DE",
    "city": "Berlin",
    "province": "Berlin",
    "longitude": "**.*******",
    "latitude": "**.*******",
    "address": "***** ****, ***** *******, **********",
    "feedCharge": "0.0703",
    "displayFeedCharge": "0.0703",
    "monetaryUnit": "EUR",
    "monetarySymbol": "€"
  },
  "eagleEyeTraceId": "*****",
  "tid": ""
}

task

list

List tasks for a device by its serial number

GET https://api-e.ecoflow.com/iot-service/device/task/list?sn=HJ37ZDH5********

{
  "code": "0",
  "message": "Success",
  "data": [
    {
      "id": "************",
      "taskType": 1,
      "status": 0,
      "sn": "HJ37ZDH5********",
      "userId": **********
    }
  ],
  "eagleEyeTraceId": "*****",
  "tid": ""
}

power

GET https://api-e.ecoflow.com/iot-service/device/power/off/total/HJ37ZDH5********

{
  "code": "0",
  "message": "Success",
  "data": {
    "sysMsTotal": ******,
    "total": **
  },
  "eagleEyeTraceId": "*****",
  "tid": ""
}

upgradeStatus

GET https://api-e.ecoflow.com/iot-service/device/upgradeStatus?sn=HJ37ZDH5********

{
  "code": "0",
  "message": "Success",
  "data": {
    "deviceUpgradeStatus": 0,
    "wifiUpgradeStatus": 0,
    "wifiCode": "10002",
    "wifiAbleRetry": 1,
    "code": "10002",
    "ableRetry": 1
  },
  "eagleEyeTraceId": "*****",
  "tid": ""
}

latestPackInfo

GET https://api-e.ecoflow.com/iot-service/device/latestPackInfo?sn=HJ37ZDH5********&supportSelfRD=1

{
  "code": "0",
  "message": "Success",
  "data": {
    "sn": "HJ37ZDH5********",
    "productType": 83,
    "model": 1,
    "updateBeforeNotice": "",
    "updatingNotice": "",
    "cpackInfo": {
      "id": 182537060***********,
      "version": "5.1.16.11",
      "wifiVersion": "0.1.0",
      "module": {
        "2": "5.0.6.1",
        "3": "4.1.8.6",
        "4": "5.1.13.4",
        "7": "5.1.4.28",
        "50": "2.0.11.3",
        "53": "4.1.8.2",
        "96": "5.1.14.7",
        "106": "1.0.0.0"
      },
      "type": 1,
      "updateTime": "2024-08-29 09:37:08",
      "note": "1. Fixed abnormal data display on the web portal of the PowerOcean cascaded systems.\n2. Optimized the islanding detection function.",
      "isUpgrading": false,
      "moduleIsLoader": {
        "AC_METER": 1
      }
    }
  },
  "eagleEyeTraceId": "*****",
  "tid": ""
}