Git Product home page Git Product logo

Comments (16)

franki29 avatar franki29 commented on July 25, 2024 1

Hi , ok. I captured the communication, maybe you find something there
test.zip
.

from hassio-ecoflow.

vwt12eh8 avatar vwt12eh8 commented on July 25, 2024

Sorry, I'm not sure if this is a problem or not. I unfortunately don't have a DELTA mini, so I can't check how it works, so it's not implemented yet.

I will take some time to analyze it. Also, I need your help to check the operation after it is implemented, is that OK?

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, one more thing:
in the log i can see following error:

File "/config/custom_components/ecoflow/sensor.py", line 158, in native_value
return sum(self.extra_state_attributes.values())
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

from hassio-ecoflow.

vwt12eh8 avatar vwt12eh8 commented on July 25, 2024

I don't think some of the entities work yet, but I've implemented the main functionality.

https://github.com/vwt12eh8/hassio-ecoflow/tree/delta-series

Please let me know if you find any problems such as wrong values. In that case, it would be helpful if you could share the results of "Download diagnostics".

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, I test it but now I get some more errors:
2022-04-30 07:21:27 ERROR (MainThread) [custom_components.ecoflow] Unexpected error fetching DBEBZ5XD9080168/dc_in_mode data: index out of range
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/ecoflow/init.py", line 59, in __get_data
return self.__parser(await self.__client.request(self.__reqdata), self.__product)
File "/config/custom_components/ecoflow/ecoflow/local/receive.py", line 107, in dc_in_mode
return d[1]
IndexError: index out of range
2022-04-30 07:21:50 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-04-30 07:22:10 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

config_entry-ecoflow-b785c186e9abb7e15a57463d906d03fa.json(1).txt

from hassio-ecoflow.

vwt12eh8 avatar vwt12eh8 commented on July 25, 2024

The position of the dc_in_mode function definition doesn't seem to match the repository code.

Is the code you downloaded up-to-date?
Have you checked out a different branch (e.g. main) by mistake?
Please check again.

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, yes I made a mistake with the branch, sorry.
I get now some more data, but still some errors:

2022-05-01 08:39:18 ERROR (MainThread) [custom_components.ecoflow] Unexpected error fetching DBEBZ5XD9080168/dc_in_mode data: index out of range
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/ecoflow/init.py", line 59, in __get_data
return self.__parser(await self.__client.request(self.__reqdata), self.__product)
File "/config/custom_components/ecoflow/ecoflow/local/receive.py", line 130, in dc_in_mode
return d[1]
IndexError: index out of range
2022-05-01 08:40:48 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

config_entry-ecoflow-b726eab1e6e651646c8fca65f4318881.json.txt

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

And I get a lot if time outs, is there a way to extend the time reading data from the device?
2022-05-01 08:54:35 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 08:55:14 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 08:57:17 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 08:59:05 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 08:59:44 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:00:04 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:01:36 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:02:14 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:02:35 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:03:27 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data
2022-05-01 09:04:16 ERROR (MainThread) [custom_components.ecoflow] Timeout fetching DBEBZ5XD9080168/pd data

from hassio-ecoflow.

vwt12eh8 avatar vwt12eh8 commented on July 25, 2024

The index out of range thing has just been fixed. It was caused by calling an API that only exists in RIVER.

I'm not sure about the timeout thing, since it doesn't happen here, but I think it's probably due to network instability.
From the logs, it seems that requests are sometimes returned and sometimes not.
The Home Assistant implementation outputs an error log only once until the next success, even if it times out continuously, so it seems that not all requests are failing.
Please give me some time to figure out how to fix this.

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, one more thing, beside the timeouts:
I am missing the MTTP actual input. There is a DELTA Mini 080168 input, but it is showing 0Watt, even the Display shows the actual Watt input from my solar panel.
Br. Frank

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, me again, some information I could find out regarding the Watt in : Looking at the heartbeat packages that are maybe similar to the one you are parsing the watt in in in the 120byte large packages that begins with AA 02 6F. Byte 33 is the input from the solar panel and byte 30 seems to bet the actual % of the battery. I am using node red to filter out the data and the Ecoflow App to verify the values.

from hassio-ecoflow.

vwt12eh8 avatar vwt12eh8 commented on July 25, 2024

Currently, we are developing a new version which is compatible with RIVER series (except mini) and DELTA series. It is not compatible with the main branch, but the new version should be able to use the DELTA series.
The DELTA series was tested using DELTA Pro.
https://github.com/vwt12eh8/hassio-ecoflow/tree/ver2-beta

This one is treated as early access, so please use it with understanding. Major things are implemented, but some minor entities are not yet implemented.

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, thanks for your information. I tested the Beta Version but unfortunately the plugin does not start.
First I had to install reactivex using pip3 install reactivex , but still no success as now I get a new Error :

called from .ecoflow.rxtcp import RxTcpAutoConnection
ModuleNotFoundError: No module named 'custom_components.ecoflow.rxtcp'

Not sure what I have to install now to met the dependencies .

from hassio-ecoflow.

franki29 avatar franki29 commented on July 25, 2024

Hi, me again. I installed home assistant into a new box and now everything is working fine.

from hassio-ecoflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.