marcelwestrahome / home-assistant-niu-component

niu scooter integration for Home assistant.
Apache License 2.0
47 stars 29 forks source link

not work with China service #54

Closed pervolianinen closed 1 year ago

pervolianinen commented 1 year ago

I using niu rqi with China app/ How to connect to China services?

marcelwestrahome commented 1 year ago

not sure you need a different end point, but for outside china it is difficult to determ

Mit2g commented 1 year ago

not sure you need a different end point, but for outside china it is difficult to determ

Yes, CN services has its independent domain. U can check here I tried to just replace sensor.py with that but fail to authenicate. If u can, plz add support for CN services and thanks

pervolianinen commented 1 year ago

not sure you need a different end point, but for outside china it is difficult to determ

I'm currently using a Chinese app outside of China. Everything is working.

What you meen wen closed #48 and write "please see other thread"?

pervolianinen commented 1 year ago

niu china

not sure you need a different end point, but for outside china it is difficult to determ

Yes, CN services has its independent domain. U can check here I tried to just replace sensor.py with that but fail to authenicate. If u can, plz add support for CN services and thanks

it's china domain... ACCOUNT_BASE_URL = "https://account.niu.com"

Page after login, above

Mit2g commented 1 year ago

not sure you need a different end point, but for outside china it is difficult to determ

I'm currently using a Chinese app outside of China. Everything is working.

What you meen wen closed #48 and write "please see other thread"?

Did u use mail as account? I am using phone number as account and met issue like u related https://github.com/marcelwestrahome/home-assistant-niu-component/issues/48. And it closed. I think u met same issue so I comment your issue below

pervolianinen commented 1 year ago

Did u use mail as account?

Yes.

I use https://github.com/goxofy/home-assistant-niu-component/ and all work fine now.