Closed lubosbed77 closed 11 months ago
Hi. Please look to logs and post here errors you found. I'll try to fix it. Also type of your charger will help.
If you set mode in solax app, does it reflect state in HA after update interval (default 15s)?
Hi Patrik,
in my case if I set the mode of charger in solax app, it does NOT reflect the state in HA after the default interval (15 s).
I have the charger Solax X3-EVC-11K(PXH).
Kind regards
Lubos
Dne ne 3. 12. 2023 8:44 uživatel Patrik Třeštík @.***> napsal:
Hi. Please look to logs and post here errors you found. I'll try to fix it. Also type of your charger will help.
If you set mode in solax app, does it reflect state in HA after update interval (default 15s)?
— Reply to this email directly, view it on GitHub https://github.com/PatrikTrestik/homeassistant-solax-http/issues/1#issuecomment-1837398876, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY . You are receiving this because you authored the thread.Message ID: @.***>
when I change the value Charger Use Mode in HA from STOP to ECO for example, the change is not applied on the EV charger.
There is the possiblility to change the value in HA lovelace, but the change is not effective on the charger itself. When the value change is done over the Solax APP, it works well.
Was your car plugged in, when trying to change. What I also did, I set the IP fixed of the EV Charger. It worked for me. Hope I could help you a bit. I also set to 10sec.
Hi Patrik, in my case if I set the mode of charger in solax app, it does NOT reflect the state in HA after the default interval (15 s). I have the charger Solax X3-EVC-11K(PXH). Kind regards Lubos Dne ne 3. 12. 2023 8:44 uživatel Patrik Třeštík @.> napsal: … Hi. Please look to logs and post here errors you found. I'll try to fix it. Also type of your charger will help. If you set mode in solax app, does it reflect state in HA after update interval (default 15s)? — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY . You are receiving this because you authored the thread.Message ID: @.>
To test please go through this: Check IP address of your charger. Check SN. It is used as password. Connect car. Change mode by any working means (solax app, button) and watch it HA reflects state.
Please send logs. All errors are there.
Dear Patrik,
Check IP address of your charger: IP address is fixed and correctly set; Check SN. It is used as password: pass is correct; Connect car: no car to be connected Change mode by any working means (solax app, button) and watch it HA reflects state.
Kr
Lubos ne 3. 12. 2023 v 21:38 odesílatel Patrik Třeštík @.***> napsal:
Hi Patrik, in my case if I set the mode of charger in solax app, it does NOT reflect the state in HA after the default interval (15 s). I have the charger Solax X3-EVC-11K(PXH). Kind regards Lubos Dne ne 3. 12. 2023 8:44 uživatel Patrik Třeštík @.
> napsal: … <#m-3656289991358977669> Hi. Please look to logs and post here errors you found. I'll try to fix it. Also type of your charger will help. If you set mode in solax app, does it reflect state in HA after update interval (default 15s)? — Reply to this email directly, view it on GitHub <#1 (comment) https://github.com/PatrikTrestik/homeassistant-solax-http/issues/1#issuecomment-1837398876>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY . You are receiving this because you authored the thread.Message ID: @.>
To test please go through this: Check IP address of your charger. Check SN. It is used as password. Connect car. Change mode by any working means (solax app, button) and watch it HA reflects state.
Please send logs. All errors are there.
— Reply to this email directly, view it on GitHub https://github.com/PatrikTrestik/homeassistant-solax-http/issues/1#issuecomment-1837593370, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFPL3D4JCZ77OXVKUD3YHTPMDAVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGU4TGMZXGA . You are receiving this because you authored the thread.Message ID: @.***>
I am now seeing the same thing here and when I check the logs I see this:
Tato chyba pochází z vlastní integrace.
Logger: custom_components.solax_http.coordinator
Source: custom_components/solax_http/coordinator.py:132
Integration: SolaX Inverter Local API (documentation)
First occurred: 04:15:02 (24 occurrences)
Last logged: 12:44:22
Error reading from Http. Url: http://10.XX.XX.XX
Traceback (most recent call last):
File "/config/custom_components/solax_http/coordinator.py", line 132, in _http_post
async with session.post(url,data=payload) as resp:
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
Could it be that the WiFi in the charger is flaky? Basically the main reason why you want cable wherever possible? ;-)
I am now seeing the same thing here and when I check the logs I see this:
Tato chyba pochází z vlastní integrace. Logger: custom_components.solax_http.coordinator Source: custom_components/solax_http/coordinator.py:132 Integration: SolaX Inverter Local API (documentation) First occurred: 04:15:02 (24 occurrences) Last logged: 12:44:22 Error reading from Http. Url: http://10.XX.XX.XX Traceback (most recent call last): File "/config/custom_components/solax_http/coordinator.py", line 132, in _http_post async with session.post(url,data=payload) as resp: File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__ self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request await resp.start(conn) File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read await self._waiter aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
Could it be that the WiFi in the charger is flaky? Basically the main reason why you want cable wherever possible? ;-)
This error is normal if appears only from time to time. It is something with timeout. I'm working on it.
Dear Patrik, Check IP address of your charger: IP address is fixed and correctly set; Check SN. It is used as password: pass is correct; Connect car: no car to be connected Change mode by any working means (solax app, button) and watch it HA reflects state. Kr Lubos ne 3. 12. 2023 v 21:38 odesílatel Patrik Třeštík @.> napsal: … Hi Patrik, in my case if I set the mode of charger in solax app, it does NOT reflect the state in HA after the default interval (15 s). I have the charger Solax X3-EVC-11K(PXH). Kind regards Lubos Dne ne 3. 12. 2023 8:44 uživatel Patrik Třeštík @. > napsal: … <#m-3656289991358977669> Hi. Please look to logs and post here errors you found. I'll try to fix it. Also type of your charger will help. If you set mode in solax app, does it reflect state in HA after update interval (default 15s)? — Reply to this email directly, view it on GitHub <#1 (comment) <#1 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY https://github.com/notifications/unsubscribe-auth/A4X3WFJH42RUVUXA5GDY5QTYHQUV3AVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TQOBXGY . You are receiving this because you authored the thread.Message ID: @.> To test please go through this: Check IP address of your charger. Check SN. It is used as password. Connect car. Change mode by any working means (solax app, button) and watch it HA reflects state. Please send logs. All errors are there. — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4X3WFPL3D4JCZ77OXVKUD3YHTPMDAVCNFSM6AAAAABAEKFGBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGU4TGMZXGA . You are receiving this because you authored the thread.Message ID: @.>
If car is not connected, even hardware button will not change mode. You have to connect cable first.
@PatrikTrestik I am not 100% sure, but I was receiving these Connection reset by peer
errors while trying to set the charge mode from Stop
to ECO
or Green
(to start charging) until I disabled the scheduled charge time in the car app. After that I was able to start the charging by switching to ECO
or Green
just fine. So it looks like yet another trouble with the charger not being able to convince the car to obey it's orders 😄
I would like to achieve the state that I would arrive home, plug in the cable and then start/stop/control the charging according to my automations from HA.
The trouble is that unless I set the charging schedule in the car, it immediately starts charging when I plug it in, even with the charge mode set to Stop
on the charger. And seems like with the schedule set I am unable to start the charging from the charger. I am only able to start charging by using the car app/API.
@PatrikTrestik I am not 100% sure, but I was receiving these
Connection reset by peer
errors while trying to set the charge mode fromStop
toECO
orGreen
(to start charging) until I disabled the scheduled charge time in the car app. After that I was able to start the charging by switching toECO
orGreen
just fine. So it looks like yet another trouble with the charger not being able to convince the car to obey it's orders 😄I would like to achieve the state that I would arrive home, plug in the cable and then start/stop/control the charging according to my automations from HA.
The trouble is that unless I set the charging schedule in the car, it immediately starts charging when I plug it in, even with the charge mode set to
Stop
on the charger. And seems like with the schedule set I am unable to start the charging from the charger. I am only able to start charging by using the car app/API.
I have exactly same automation running. HA automation is switching Fast (when i want charge) and Green (to stop charging) modes. In this configuration, whenever I connect car it is in Green mode and will not charge (only PV) untill changed by automation to Fast.
I see.
For this to work for me I would need to fix the Modbus connection between the charger and inverter. Till then Green
behaves the same as ECO
= 3 x 6A charging.
I see. For this to work for me I would need to fix the Modbus connection between the charger and inverter. Till then
Green
behaves the same asECO
= 3 x 6A charging.
Do you know wiring? I have fixed it myself and I can help you you are in trouble.
aiohttp.client_exceptions.ClientOSError is now "fixed" with retry. In Version 1.1.1.
@johny-mnemonic For the charger to work correctly, modbus must be set in COM port (inverter X3 hybrid G4) - Charger EV and Braud Rate 9600.
I'm closing this issue as resolved.
@johny-mnemonic For the charger to work correctly, modbus must be set in COM port (inverter X3 hybrid G4) - Charger EV and Braud Rate 9600.
I know about this, but my COM port is in the RS485 mode wired for the HA integration to control the inverter. There is no Sun now so I have quite some time to find a solution for both the HA <-> Inverter and Invert <-> Charger communication to work.
@johny-mnemonic For the charger to work correctly, modbus must be set in COM port (inverter X3 hybrid G4) - Charger EV and Braud Rate 9600.
I know about this, but my COM port is in the RS485 mode wired for the HA integration to control the inverter. There is no Sun now so I have quite some time to find a solution for both the HA <-> Inverter and Invert <-> Charger communication to work.
And your Dongle is not exposing Modbus TCP? I think that easiest is to connect HA through Modbus TCP and use COM for EV Charger.
@PatrikTrestik as we already discussed together, my WiFi dongle exposes Modbus TCP, but I don't trust WiFi for mission critical things in the house so I would treat that as a last resort option.
BTW: Did you try to play with the Current_ChargeMAX
?
I have seen it in the alfa version of your integration (now it's gone) and I see it in the app, where it is possible to set it to current between 6 and 16A when charger is set to Fast
mode.
BTW: Did you try to play with the
Current_ChargeMAX
? I have seen it in the alfa version of your integration (now it's gone) and I see it in the app, where it is possible to set it to current between 6 and 16A when charger is set toFast
mode.
I have it commented out because mapping was unsure. Mapping is problematic as READ position is not always same as WRITE position. But I have info from mobile app. I'll work on it in next version. Please post to: https://github.com/PatrikTrestik/homeassistant-solax-http/issues
Hello,
when I change the value Charger Use Mode in HA from STOP to ECO for example, the change is not applied on the EV charger. There is the possiblility to change the value in HA lovelace, but the change is not effective on the charger itself. When the value change is done over the Solax APP, it works well.