Closed dewi-ny-je closed 2 years ago
When the connection is reset by the peer, the connection is not accepted. Make sure you've got the IP-address right and it's the WiFi connected IP-Address. I'm not sure if this goes for all ECU models but the standard ECU-R (and ECU-B) allows port 8899 only when it's WiFi connected not by ethernet.
I had both eternal and wifi set up. Now I disconnected the lan, rebooted, tried again. The IP is the same I used earlier and it's correct, I manually assigned it in the router. I get
Logger: custom_components.apsystems_ecur.config_flow
Source: custom_components/apsystems_ecur/APSystemsSocket.py:217
Integration: APSystems PV solar ECU (documentation)
First occurred: 00:10:29 (1 occurrences)
Last logged: 00:10:29
APSystemsInvalidData exception: Error getting checksum int from 'Inverter data' data=b''
Traceback (most recent call last):
File "/config/custom_components/apsystems_ecur/APSystemsSocket.py", line 212, in check_ecu_checksum
checksum = int(data[5:9])
ValueError: invalid literal for int() with base 10: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/apsystems_ecur/config_flow.py", line 45, in async_step_user
test_query = await self.hass.async_add_executor_job(ap_ecu.query_ecu)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/apsystems_ecur/APSystemsSocket.py", line 158, in query_ecu
data = self.process_inverter_data()
File "/config/custom_components/apsystems_ecur/APSystemsSocket.py", line 287, in process_inverter_data
self.check_ecu_checksum(data, "Inverter data")
File "/config/custom_components/apsystems_ecur/APSystemsSocket.py", line 217, in check_ecu_checksum
raise APSystemsInvalidData(error)
custom_components.apsystems_ecur.APSystemsSocket.APSystemsInvalidData: Error getting checksum int from 'Inverter data' data=b''
I'm on 2022.3.8,not 2022.1
This is a known error with the latest ECU-R models (with SunSpec logo on the back). These indeed have the ECU-R-Pro firmware and should be modbus compatible.
Hello Edwin and Dewi,
As i read in your last post Edwin. Is it possible to read the ECU-R with Modbus? Do you know how? I have an ECU-R with an RJ45 output connector with discription RS485 on it. Kind regards, Thetmar
Hello Edwin and Dewi,
As i read in your last post Edwin. Is it possible to read the ECU-R with Modbus? Do you know how? I have an ECU-R with an RJ45 output connector with discription RS485 on it. Kind regards, Thetmar
Look for the SUNSPEC module for home assistant
I have an ECU-R-PRO which I can access using the hotspot button.
I downloaded the master branch as 3166ad4 and installed it on HA 2022.1.
When I try to set it up I get in the interface:
[%key:common::config_flow::error::unknown%]
and in the logs:I'm not sure how to proceed, it seems like a bug to me, since exceptions should be in principle caught and handled.