Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change server #82

Open
luuks123 opened this issue Mar 21, 2023 · 4 comments
Open

Ability to change server #82

luuks123 opened this issue Mar 21, 2023 · 4 comments

Comments

@luuks123
Copy link

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.

@TimSoethout
Copy link
Owner

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.

@luuks123
Copy link
Author

luuks123 commented Mar 21, 2023

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

@TimSoethout
Copy link
Owner

That is what I would expect to work indeed. Does it show the eu URLs in the debug logs?

@luuks123
Copy link
Author

luuks123 commented Mar 21, 2023

De debug log says it still connects to eu.semsportal.com,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants