tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
281 stars 47 forks source link

I'm not getting readings from many of the sensors #231

Closed philmulley closed 3 weeks ago

philmulley commented 2 months ago

I've just installed the integration (on a Delta2) and I'm missing readings from a lot of the sensors.

sensors

Firmware V1.0.1.123 & V1.0.6.28 (WiFi).

Home Assistant Core 2024.4.3

Some things are working: like turning on and off the USB power outputs, for example. Nothing about the battery though.

What information would be helpful to yourself in diagnosis?

Nid01 commented 2 months ago

You can activate debugging in the integration for a short period of time and in the file you get after stopping the debugging there is JSON data. This JSON data needs to be analyzed, how it differs from the DELTA 2 definition of the integration, so it would help to get a look into the JSON data.

philmulley commented 2 months ago

Thanks very much for that.

I generated the file and then searched for "ecoflow" in the resulting contents and found only:

`2024-04-23 18:50:15.230 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration ecoflow_cloud which has not been tested by Home Assistant. This component might cause stability problems

2024-04-24 10:59:11.304 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999991556", "version": "1.1", "moduleType": 0, "operateType": "latestQuotas", "params": {}} :(0, 12)(False) 2024-04-24 10:59:11.305 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.switch] Updating switch ecoflow-R331ZKB4ZF3FO494-mppt-beepState to 0 2024-04-24 10:59:11.305 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.switch] Updating switch ecoflow-R331ZKB4ZF3FO494-pd-dcOutState to 1 2024-04-24 10:59:11.307 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999991557", "version": "1.0", "moduleType": 1, "operateType": "dcOutCfg", "params": {"enabled": 1}} :(0, 13)(False) 2024-04-24 10:59:13.841 DEBUG (SyncWorker_10) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999991558", "version": "1.1", "moduleType": 0, "operateType": "latestQuotas", "params": {}} :(0, 14)(False) 2024-04-24 10:59:13.841 DEBUG (SyncWorker_10) [custom_components.ecoflow_cloud.switch] Updating switch ecoflow-R331ZKB4ZF3FO494-mppt-beepState to 0 2024-04-24 10:59:13.841 DEBUG (SyncWorker_10) [custom_components.ecoflow_cloud.switch] Updating switch ecoflow-R331ZKB4ZF3FO494-pd-dcOutState to 0 2024-04-24 10:59:13.844 DEBUG (SyncWorker_10) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999991559", "version": "1.0", "moduleType": 1, "operateType": "dcOutCfg", "params": {"enabled": 0}} :(0, 15)(False) `

maddinhome commented 2 months ago

I also have the same problem.

Powerstream Firmware: V1.0.1.195 V1.0.4.31(Wi-Fi)

Delta 2 Firmware: V1.0.1.123 V1.0.6.28(Wi-Fi)

Core 2024.5.0b0 Supervisor 2024.04.3 Operating System 12.2 Frontend 20240424.1

Logger: custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt Quelle: custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py:309 Integration: EcoFlow-Cloud (Dokumentation, Probleme) Erstmals aufgetreten: 13:15:48 (918 Vorkommnisse) Zuletzt protokolliert: 14:48:30 Detected that custom integration 'ecoflow_cloud' calls async_write_ha_state from a thread at custom_components/ecoflow_cloud/entities/init.py, line 85: self.async_write_ha_state(). Please report it to the author of the 'ecoflow_cloud' custom integration.

2024-04-25 13:15:46.668 WARNING (Thread-3 (_thread_main)) [homeassistant.helpers.frame] Detected that custom integration 'ecoflow_cloud' calls async_write_ha_state from a thread at custom_components/ecoflow_cloud/sensor.py, line 393: self.async_write_ha_state(), please report it to the author of the 'ecoflow_cloud' custom integration 2024-04-25 13:15:46.668 ERROR (Thread-3 (_thread_main)) [root] Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 265, in on_json_message self.data.add_get_reply_message(raw) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 139, in add_get_reply_message self.get_reply_observable.on_next(self.get_reply) File "/usr/local/lib/python3.12/site-packages/reactivex/subject/subject.py", line 59, in on_next super().on_next(value) File "/usr/local/lib/python3.12/site-packages/reactivex/observer/observer.py", line 39, in on_next self._on_next_core(value) File "/usr/local/lib/python3.12/site-packages/reactivex/subject/subject.py", line 66, in _on_next_core observer.on_next(value) File "/usr/local/lib/python3.12/site-packages/reactivex/observer/autodetachobserver.py", line 28, in on_next self._on_next(value) File "/config/custom_components/ecoflow_cloud/sensor.py", line 393, in get_reply_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'ecoflow_cloud' calls async_write_ha_state from a thread at custom_components/ecoflow_cloud/sensor.py, line 393: self.async_write_ha_state(). Please report it to the author of the 'ecoflow_cloud' custom integration. 2024-04-25 13:15:46.687 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package__) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package)), please create a bug report at https://github.com/frenck/spook/issues 2024-04-25 13:15:46.705 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package)), please create a bug report at https://github.com/frenck/spook/issues 2024-04-25 13:15:46.743 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package)), please create a bug report at https://github.com/frenck/spook/issues 2024-04-25 13:15:46.831 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package)), please create a bug report at https://github.com/frenck/spook/issues 2024-04-25 13:15:46.844 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", package)), please create a bug report at https://github.com/frenck/spook/issues 2024-04-25 13:15:48.026 WARNING (Thread-4 (_thread_main)) [homeassistant.helpers.frame] Detected that custom integration 'ecoflow_cloud' calls async_write_ha_state from a thread at custom_components/ecoflow_cloud/entities/init__.py, line 85: self.async_write_ha_state(), please report it to the author of the 'ecoflow_cloud' custom integration 2024-04-25 13:15:48.026 ERROR (Thread-4 (_thread_main)) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Detected that custom integration 'ecoflow_cloud' calls async_write_ha_state from a thread at custom_components/ecoflow_cloud/entities/init.py, line 85: self.async_write_ha_state(). Please report it to the author of the 'ecoflow_cloud' custom integration.

maddinhome commented 1 month ago

look here: https://github.com/tolwi/hassio-ecoflow-cloud/issues/232

maybe the solution.....

KarinBerg commented 1 month ago

This issue will be fix with this pull request https://github.com/tolwi/hassio-ecoflow-cloud/pull/234 once it is merge and released by the repository owner @tolwi

In the meantime, you can modify the files from the pull request locally on your Home Assistant installation.

Thanks to @Kristian-R and @maddinhome

pauldcomanici commented 1 month ago

I made those changes locally, but that did not fix the battery level being "unknown." Do you have any other ideas?

Nid01 commented 1 month ago

@pauldcomanici For DELTA2's battery level the integration is looking for bms_emsStatus.lcdShowSoc values. I do not own a DELTA2 so I don't know if the integration is looking for the wrong key. Since the debug logging of the integration didn't log the received packages as I previously thought, you should have the option download diagnostics. image

There you should be able to find data which contains the received messages from your DELTA2. When you don't find that you might need to add the DELTA2 as diagnostic so the raw messages get stored. From that we could find out, what might be off in your situation.

pauldcomanici commented 1 month ago

I did the "download diagnostics" and I couldn't find battery data. See bellow the content:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.5.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Bucharest",
    "os_name": "Linux",
    "os_version": "6.6.28-haos-raspi",
    "supervisor": "2024.05.1",
    "host_os": "Home Assistant OS 12.3",
    "docker_version": "25.0.5",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "ecoflow_cloud": {
      "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud",
      "version": "0.13.2",
      "requirements": [
        "paho-mqtt==1.6.1",
        "reactivex==4.0.4",
        "protobuf>=4.23.0"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "landroid_cloud": {
      "documentation": "https://github.com/MTrab/landroid_cloud/blob/master/README.md",
      "version": "5.0.4",
      "requirements": [
        "pyworxcloud==4.1.13"
      ]
    },
    "watchman": {
      "documentation": "https://github.com/dummylabs/thewatchman",
      "version": "0.5.1",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "shelly": {
      "documentation": "https://github.com/StyraHem/ShellyForHASS/blob/master/README.md",
      "version": "1.0.5",
      "requirements": [
        "pyShelly==1.0.3",
        "paho-mqtt==1.6.1",
        "websocket-client"
      ]
    }
  },
  "integration_manifest": {
    "domain": "ecoflow_cloud",
    "name": "Ecoflow-Cloud",
    "codeowners": [
      "@tolwi"
    ],
    "config_flow": true,
    "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud",
    "iot_class": "cloud_push",
    "issue_tracker": "https://github.com/tolwi/hassio-ecoflow-cloud/issues",
    "requirements": [
      "paho-mqtt==1.6.1",
      "reactivex==4.0.4",
      "protobuf>=4.23.0"
    ],
    "version": "0.13.2",
    "is_built_in": false
  },
  "data": {
    "device": "DELTA_2",
    "params": {
      "mppt.beepState": 0,
      "mppt.cfgAcEnabled": 1,
      "mppt.cfgAcXboost": 0,
      "pd.acAutoOutConfig": 1,
      "pd.bpPowerSoc": 0,
      "pd.carState": 0,
      "pd.dcOutState": 1,
      "pd.pvChgPrioSet": 0
    },
    "set": [
      {
        "from": "HomeAssistant",
        "id": "999918844",
        "moduleType": 5,
        "operateType": "quietMode",
        "params": {
          "enabled": 0
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918842",
        "moduleType": 1,
        "operateType": "watthConfig",
        "params": {
          "bpPowerSoc": 0,
          "minChgSoc": 0,
          "isConfig": 0,
          "minDsgSoc": 0
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918840",
        "moduleType": 5,
        "operateType": "mpptCar",
        "params": {
          "enabled": 0
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918838",
        "moduleType": 1,
        "operateType": "pvChangePrio",
        "params": {
          "pvChangeSet": 0
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918836",
        "moduleType": 5,
        "operateType": "acOutCfg",
        "params": {
          "enabled": 255,
          "out_voltage": -1,
          "out_freq": 255,
          "xboost": 0
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918834",
        "moduleType": 1,
        "operateType": "dcOutCfg",
        "params": {
          "enabled": 1
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918832",
        "moduleType": 5,
        "operateType": "acOutCfg",
        "params": {
          "enabled": 1,
          "out_voltage": -1,
          "out_freq": 255,
          "xboost": 255
        },
        "version": "1.0"
      },
      {
        "from": "HomeAssistant",
        "id": "999918830",
        "moduleType": 1,
        "operateType": "acAutoOutConfig",
        "params": {
          "acAutoOutConfig": 1,
          "minAcOutSoc": 5
        },
        "version": "1.0"
      }
    ],
    "set_reply": [],
    "get": [
      {
        "from": "HomeAssistant",
        "id": "999918843",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918841",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918839",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918837",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918835",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918833",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918831",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918829",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      },
      {
        "from": "HomeAssistant",
        "id": "999918828",
        "moduleType": 0,
        "operateType": "latestQuotas",
        "params": {},
        "version": "1.1"
      }
    ],
    "get_reply": [],
    "raw_data": []
  }
}

Am I missing something?

philmulley commented 1 month ago

Following on from Nid01's comment I've also downloaded the json file to see if this contains anything of use to you

{ "home_assistant": { "installation_type": "Home Assistant Container", "version": "2024.5.3", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "x86_64", "timezone": "Europe/London", "os_name": "Linux", "os_version": "4.19.0-26-amd64", "run_as_root": true }, "custom_components": { "omnik_inverter": { "documentation": "https://github.com/robbinjanssen/home-assistant-omnik-inverter", "version": "2.6.4", "requirements": [ "omnikinverter==1.0.0" ] }, "octopus_energy": { "documentation": "https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy", "version": "11.0.0", "requirements": [] }, "octopusagile": { "documentation": "https://github.com/markgdev/home-assistant_OctopusAgile", "version": "2021.3.0b0", "requirements": [] }, "braviatv_psk": { "documentation": "https://github.com/custom-components/media_player.braviatv_psk", "version": "0.4.2", "requirements": [ "pySonyBraviaPSK==0.2.4" ] }, "monitor_docker": { "documentation": "https://github.com/ualex73/monitor_docker", "version": "1.10", "requirements": [ "aiodocker==0.21.0", "python-dateutil==2.8.2" ] }, "uptime_kuma": { "documentation": "https://github.com/meichthys/uptime_kuma/blob/main/README.md", "version": "2.1.0", "requirements": [ "pyuptimekuma-hass" ] }, "auto_backup": { "documentation": "https://github.com/jcwillox/hass-auto-backup", "version": "1.4.1", "requirements": [] }, "navien_water_heater": { "documentation": "https://www.github.com/nikshriv/hass_navien_water_heater", "version": "1.0.1", "requirements": [ "AWSIoTPythonSDK" ] }, "alarmo": { "documentation": "https://github.com/nielsfaber/alarmo", "version": "v1.10.1", "requirements": [] }, "tapo": { "documentation": "https://github.com/petretiandrea/home-assistant-tapo-p100", "version": "3.1.2", "requirements": [ "plugp100==5.1.3" ] }, "trakt": { "documentation": "https://github.com/custom-components/sensor.trakt/blob/master/README.md", "version": "2.0.3", "requirements": [ "trakt==2.14.0" ] }, "ecoflow_cloud": { "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud", "version": "0.13.2", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ] }, "tplink_router": { "documentation": "", "version": "1.0.0", "requirements": [] }, "presence_simulation": { "documentation": "https://github.com/slashback100/presence_simulation", "version": "4.8", "requirements": [] }, "ble_monitor": { "documentation": "https://github.com/custom-components/ble_monitor", "version": "12.11.1", "requirements": [ "pycryptodomex>=3.18.0", "janus>=1.0.0", "aioblescan>=0.2.14", "btsocket>=0.2.0", "pyric>=0.1.6.3" ] }, "powercalc": { "documentation": "https://github.com/bramstroker/homeassistant-powercalc", "version": "v1.12.2", "requirements": [ "numpy>=1.21.1" ] }, "hacs": { "documentation": "https://hacs.xyz/docs/configuration/start", "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "watchman": { "documentation": "https://github.com/dummylabs/thewatchman", "version": "0.5.1", "requirements": [ "prettytable==3.0.0" ] } }, "integration_manifest": { "domain": "ecoflow_cloud", "name": "Ecoflow-Cloud", "codeowners": [ "@tolwi" ], "config_flow": true, "documentation": "https://github.com/tolwi/hassio-ecoflow-cloud", "iot_class": "cloud_push", "issue_tracker": "https://github.com/tolwi/hassio-ecoflow-cloud/issues", "requirements": [ "paho-mqtt==1.6.1", "reactivex==4.0.4", "protobuf>=4.23.0" ], "version": "0.13.2", "is_built_in": false }, "data": { "device": "DELTA_2", "params": {}, "set": [], "set_reply": [], "get": [ { "from": "HomeAssistant", "id": "999956240", "moduleType": 0, "operateType": "latestQuotas", "params": {}, "version": "1.1" } ], "get_reply": [], "raw_data": [] } }

Nid01 commented 1 month ago

@pauldcomanici @philmulley I'm surprised that params is containing no data. That's what we are missing. I think you might have the same issue as https://github.com/tolwi/hassio-ecoflow-cloud/issues/237#issue-2293764186.

pauldcomanici commented 1 month ago

I look over #237, and the port is not a problem for me. I enabled debug logging and this is what I get:

2024-05-15 08:05:11.488 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration ecoflow_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-05-15 08:05:21.557 INFO (SyncWorker_1) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Login to EcoFlow API https://api.ecoflow.com/auth/login
2024-05-15 08:05:21.891 INFO (SyncWorker_1) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Successfully logged in:
2024-05-15 08:05:21.891 INFO (SyncWorker_1) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Requesting IoT MQTT credentials https://api.ecoflow.com/iot-auth/app/certification
2024-05-15 08:05:22.104 INFO (SyncWorker_1) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Successfully extracted account: app-ID_EDITED
2024-05-15 08:05:22.181 INFO (MainThread) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Connecting to MQTT Broker mqtt-e.ecoflow.com:8883
2024-05-15 08:05:22.426 INFO (Thread-5 (_thread_main)) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Subscribed to MQTT topic /app/device/property/SN_EDITED
2024-05-15 08:05:27.910 DEBUG (MainThread) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999958113", "version": "1.1", "moduleType": 0, "operateType": "latestQuotas", "params": {}} :(0, 2)(False)
2024-05-15 08:21:47.736 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.switch] Updating switch ecoflow-SN_EDITED-pd-dcOutState to 1
2024-05-15 08:21:47.741 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999958114", "version": "1.1", "moduleType": 0, "operateType": "latestQuotas", "params": {}} :(0, 3)(False)
2024-05-15 08:21:47.743 DEBUG (SyncWorker_6) [custom_components.ecoflow_cloud.mqtt.ecoflow_mqtt] Sending {"from": "HomeAssistant", "id": "999958115", "version": "1.0", "moduleType": 1, "operateType": "dcOutCfg", "params": {"enabled": 1}} :(0, 4)(False)

looks pretty similar to @philmulley

Later edit: I followed the flow of this integration and managed to get the credentials to access MQTT; after that by using MQTT Explorer, I managed to connect (when connecting, I added the topics from https://github.com/tolwi/hassio-ecoflow-cloud/blob/42b8d22eab937c2daebddcb225ae476508813d2b/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py#L176 ) and did some changes ... and nothing was displayed in the Explorer ...

I even tried to use "mqtts://mqtt-e.ecoflow.com" and "mqtts://mqtt.ecoflow.com"; no event was captured in both cases.

I submitted a request on EcoFlow for developer account ... maybe I can manage to dig dipper; however now I'm stuck as I don't know what could I check to see from where there is the problem.

nils-82 commented 1 month ago

Hello, I have updated to the latest version and that doesn't seem to work anymore. See screenshots attached . Was working fine before the update. Hope this can be fix somehow . Regards Screenshot_20240515_123102_Home Assistant

Nid01 commented 1 month ago

@pauldcomanici Where did you ask for developer account? When asked at https://developer-eu.ecoflow.com/us/ then you should know, that this is another newer API and not the one this integration is using.

Nid01 commented 1 month ago

@nils-82 Please provide exact version numbers as "latest version" can easily be mistaken.

nils-82 commented 1 month ago

@nils-82 Please provide exact version numbers as "latest version" can easily be mistaken.

I'm using version 0.13.3 but please ignore my message as I think the problem is coming from the battery itself.

philmulley commented 1 month ago

@pauldcomanici @philmulley I'm surprised that params is containing no data. That's what we are missing. I think you might have the same issue as #237 (comment).

I've made the changes to the 2 files as suggested in #237 but I'm still not getting any readings.

Nid01 commented 3 weeks ago

@philmulley Is your issue solved with the newest version https://github.com/tolwi/hassio-ecoflow-cloud/releases/tag/v0.13.3 of the integration?

philmulley commented 3 weeks ago

No, sadly I'm still not getting any readings. Is there anything else I can supply or test to help with fault finding?

Thanks so much for all your efforts.

Phil

On Sun, 2 Jun 2024, 15:21 Nid01, @.***> wrote:

@philmulley https://github.com/philmulley Is your issue solved with the newest version https://github.com/tolwi/hassio-ecoflow-cloud/releases/tag/v0.13.3 of the integration?

— Reply to this email directly, view it on GitHub https://github.com/tolwi/hassio-ecoflow-cloud/issues/231#issuecomment-2143875077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ6DMNIS6QLYBVPRW4CLMDZFMS5LAVCNFSM6AAAAABGVO6BYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHA3TKMBXG4 . You are receiving this because you were mentioned.Message ID: @.***>

philmulley commented 3 weeks ago

A quick update: after commenting again a couple of hours ago I grew impatient and ripped out the integration and then reset my Ecoflow account, then I put the integration back in again.

And its now working!

Hurrah and many thanks to all that helped/commented.

pauldcomanici commented 3 weeks ago

wow, this is crazy, you are right. I removed the integration then added it again and now it works.

philmulley commented 3 weeks ago

I'm thinking that perhaps HA cached things, I did make the adjustments to the files as suggested my some on this thread: but perhaps HA was not reading the newer version of the files until I re installed.

Just a thought.

Phil

On Mon, 3 Jun 2024 at 13:51, Paul Comanici @.***> wrote:

wow, this is crazy, you are right. I removed the integration then added it again and now it works.

— Reply to this email directly, view it on GitHub https://github.com/tolwi/hassio-ecoflow-cloud/issues/231#issuecomment-2145126445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ6DMLBQ4JAMN6RB63SGT3ZFRRGBAVCNFSM6AAAAABGVO6BYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVGEZDMNBUGU . You are receiving this because you modified the open/close state.Message ID: @.***>