Closed backupandforkacc closed 1 year ago
I have the same problem here
If it is a new installation (ECU is new), the life-time energy is still zero. Then you have two options: Wait until life-time energy is no longer zero or edit APSystemsSocket.py and place a # in front of lines 116 to 119. In previous versions the issue was here: https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/113#issuecomment-1263436330 Sorry for the inconvenience.
@backupandforkacc and @sbemmann Please provide feedback on this issue, can it be closed?
Hi, same problem on my setup, Was all ok than ECU disconnected with same error message. May I ask how to perform the change suggested on #113? Can I do it via the web interface or do I login via ssh etc? Thanks in advance for your support.
You can use "File Editor" it's an add-on for Home Assistant. Browse to APSystemsSocket.py and comment out the lines with a # Then save the file and restart HA.
I did as per below but same problem:
def query_ecu(self): self.open_socket() cmd = self.ecu_query self.ecu_raw_data = self.send_read_from_socket(cmd) self.close_socket() try: self.process_ecu_data()
# https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/126
# https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/113
# if self.lifetime_energy == 0:
# error = f"ECU returned 0 for lifetime energy, this is either a glitch from the ECU or a brand new installed ECU. Raw Data={self.ecu_raw_data}"
# self.add_error(error)
# raise APSystemsInvalidData(error)
except Exception as err:
raise APSystemsInvalidData(err)
# Some ECUs likes the socket to be closed and re-opened between commands
self.open_socket()
Did i make something wrong?
ECU version ECU-B-EU Article No. 211018
Home Assistant 2023.10.5 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231005.0 - latest
APSystems ECU-R v1.2.30
Device seems working correctly on apsystem website:
Via ssh it replies to ping but no result from the nc query.... :-/ neither a error message.
It's strange, i removed the wifi antenna from the ECU, still no correct reply from ssh but now it works... I tested changing the config from 300 to 600 sec and change is configured without any problem.
For information, now I got the reply
You removed the WiFi antenna and all is working now? What do you mean with "i removed the WiFi antenna from the ECU"?
I unscrewed the antenna as per image, I know sound crazy...now I'm running just with the zigbee antenna connected on the box, Maybe I had a faulty antenna or a faulty SMA connector. I'll test putting back the antenna and I let you know.
Indeed, I recall another case where removing the antenna had an effect on the operation of the ECU. I really can't figure out exactly how this works, is it interference from another device nearby? I have no idea, but it's nice that it seems to work now.
I'll close this issue, feel free to create a new issue if you have any questions
I had to make a screenshot as I cannot copy the last line completely.
I measure the power production by an energy plug and it shows > 100 W.