goodwe-sems-home-assistant
goodwe-sems-home-assistant copied to clipboard
Ability to change server
Is it possible to use another server of Semsportal, us.semsportal.com for example ?
It always connects to eu.semsportal.com, but that isnt working in my case. I want to use us.semsportal.com because that one is working fine.
Easiest way is to change the hardcoded URL in the source code in your custom_components
directory.
The component does not support changing this via configuration currently.
I have tried that, but it didnt work.
i changed the url and rebooted HA but it keeps connecting to eu.semsportal.com, is there something i'm doing wrong ?
changed in sems_api.py the following rules:
# _LoginURL = "https://us.semsportal.com/api/v2/Common/CrossLogin" _LoginURL = "https://us.semsportal.com/api/v2/Common/CrossLogin" _PowerStationURLPart = "/v2/PowerStation/GetMonitorDetailByPowerstationId" _RequestTimeout = 30 # seconds
That is what I would expect to work indeed. Does it show the eu URLs in the debug logs?
De debug log says it still connects to eu.semsportal.com,