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

cannot_connect #7

Open
AlexandreValette opened this issue Sep 30, 2023 · 33 comments
Open

cannot_connect #7

AlexandreValette opened this issue Sep 30, 2023 · 33 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@AlexandreValette
Copy link

Hi,

I've installed the integration via HACS on my Raspberry Pi4 with HA OS no docker.
When adding the integration, a prompt asks you for your renpho credential. I always get the error "cannot_connect".
However, i've checked that my credentials works fine with the android Renpho app and with their website.

NB: Not sure it's revelent but i've noticed that renpho has changed its android app.
I have created a new account with the new app ("Renpho Health"). These crendetials do not work with the older app "Renpho". Also this old app does not allow any more to create an account.

@aswede
Copy link

aswede commented Oct 21, 2023

Hi,

Just installed Renpho today, following the instructions, and just like @AlexandreValette, when I add the integration I get the same message cannot_connect.

@noossyy
Copy link

noossyy commented Oct 21, 2023

Hi,

Exactly the same as AlexandreValette, "cannot_connect". I hope it is fixable ! this integration looks great.

@antoinebou12
Copy link
Owner

antoinebou12 commented Oct 27, 2023

Ok i check it can you send me the logs of your home assistants

try the version 1.0.0 of the code or the main repo

@antoinebou12 antoinebou12 self-assigned this Oct 27, 2023
@create-issue-branch
Copy link

Branch issue-7-_cannot_connect created!

@antoinebou12 antoinebou12 added the bug Something isn't working label Oct 27, 2023
@antoinebou12 antoinebou12 added this to the v2.0.1 milestone Oct 27, 2023
@antoinebou12
Copy link
Owner

Also make sure you are using the renpho app (https://play.google.com/store/apps/details?id=com.qingniu.renpho&hl=en_US&pli=1) for the home assistants plugin
and not the renpho health (https://play.google.com/store/apps/details?id=com.renpho.health&hl=en_US)

@antoinebou12
Copy link
Owner

try this:

  1. Try to delete the plugin folder in the visual studio code add-on
    image
  2. reboot home assitants
  3. Copy the folder from github
    https://github.com/antoinebou12/hass_renpho/tree/master/custom_components/renpho
    put it at the same place
  4. Add you login info in the configuration.yaml
renpho:
  email: [email protected] # email address
  password: MySecurePassword # password
  user_id: 123456789 # user id (optional)
  refresh: 600 # time to poll (ms)

sensor:
  platform: renpho

@noossyy
Copy link

noossyy commented Oct 30, 2023

Hello Antoine,

thanks a lot for working on this issue !

I really would like to provide the logs But could you tell me how ? Sorry for that.
it’s just that when I go to home assistant logs page, I get all the logs of all my devices.
meanwhile I will try what you suggested.

@noossyy
Copy link

noossyy commented Nov 1, 2023

Hi,

we can’t create account on the Renpho app anymore on iPhone or android. It redirects to the Renpho Health app.
i also tried v1.0.0 and main repo, same error “cannot connect”.
But maybe because I have Renpho Health account credentials not Renpho account…?
About the logs, is this what you want?

2023-11-01 01:01:24.446 ERROR (MainThread) [custom_components.renpho.api_renpho] 'terminal_user_session_key' not found in parsed object.
2023-11-01 01:01:24.449 ERROR (MainThread) [custom_components.renpho.api_renpho] Validation failed: 'terminal_user_session_key' missing.
2023-11-01 01:01:24.450 ERROR (MainThread) [custom_components.renpho.config_flow] Cannot connect due to Invalid credentials. Details: {'email': '[email protected]'}

@AlexandreValette
Copy link
Author

Also make sure you are using the renpho app (https://play.google.com/store/apps/details?id=com.qingniu.renpho&hl=en_US&pli=1) for the home assistants plugin and not the renpho health (https://play.google.com/store/apps/details?id=com.renpho.health&hl=en_US)

Hi Antoine,
If you don't have already an account, you cannot subscribe anymore to the "Renpho" app. You have a message telling you that "the app will be removed soon and to go to the Renpho Health app"
And credentials created with the "Renpho Health" app are not recognized by the "Renpho" app - nor you integration.

@antoinebou12
Copy link
Owner

antoinebou12 commented Nov 5, 2023

@AlexandreValette @noossyy @aswede
I just saw that and it's suck because all the data is based on the renpho app api like the original project. I will try to update with the new api endpoint of renpho health. I will try to refactor the code in the coming days, but for now i will show how you can create renpho account on the old app. I need to reverse engineer the new api to extract the data.

Untitled.design.mp4

image

@Alsoff
Copy link

Alsoff commented Jan 1, 2024

Just wanted to add a +1 on this. Downloaded today and got the cannot_connect error - presumably because I have an account on the Renpho Health app and not the old Renpho app.

@ManixQC
Copy link

ManixQC commented Jan 3, 2024

Same! New purchase, new account, doesn't work on Renpho Health. Will try to make an account as per your video!

@applepearpi
Copy link

Same! New purchase, new account, doesn't work on Renpho Health. Will try to make an account as per your video!

I spent so long troubleshooting the integration just to finally find this!

@MarcelCountry
Copy link

is there any news?

@antoinebou12
Copy link
Owner

I am sorry for the issue with the extensions. I will try to fix the problem with the connect and too many api call.
Thanks you for your patient !

@ManixQC
Copy link

ManixQC commented Feb 25, 2024

I am sorry for the issue with the extensions. I will try to fix the problem with the connect and too many api call.
Thanks you for your patient !

Salut Antoine! En fait la vrai attente est à propos du support de Renpho Health, la nouvelle appli de Renpho! Perso au moins ça fonctionne avec ton vidéo et l'ancienne appli.

Sinon, un moyen de changer les kg en lbs?

@antoinebou12
Copy link
Owner

I am sorry for the issue with the extensions. I will try to fix the problem with the connect and too many api call.
Thanks you for your patient !

Salut Antoine! En fait la vrai attente est à propos du support de Renpho Health, la nouvelle appli de Renpho! Perso au moins ça fonctionne avec ton vidéo et l'ancienne appli.

Sinon, un moyen de changer les kg en lbs?

La nouvelle application à un api different completement, mais il faut que je fasse plus de recherche, mais le travail et la vie. Je vais essayer de rendre cette application plus stable avant de faire la nouvelle application. Il a beaucoup de api call qui fontionne mal. Merci !

@antoinebou12
Copy link
Owner

Pour les kg et les livres. J' ai ajouté un toggle dans les settings je te reviens si peu

@antoinebou12
Copy link
Owner

@ManixQC I changed the code to add options for lbs it's in beta in the master

@ManixQC
Copy link

ManixQC commented Mar 1, 2024 via email

@ManixQC
Copy link

ManixQC commented Mar 1, 2024

@ManixQC I changed the code to add options for lbs it's in beta in the master

@antoinebou12 J'ai testé le build beta master et en effet je vois le choix entre kg et lbs lors de la configuration initiale mais ensuite aucune entité n'est chargée! J'ai testé 2 install et avec restart ou reboot et ça faisait la même chose, le build master me permet de compléter la config sans erreur mais il ne liste pas les entités. J'ai réinstallé le build 2.0.1 et du coup les 81 entités sont réapparues! :)

Merci pour ton temps!

@antoinebou12
Copy link
Owner

@ManixQC ok merci ! Je vais continuer à travailer dessus, mais je suis fais IP ban du service. Si tu peux share tes logs ça aiderait

@ManixQC
Copy link

ManixQC commented Mar 1, 2024

@ManixQC ok merci ! Je vais continuer à travailer dessus, mais je suis fais IP ban du service. Si tu peux share tes logs ça aiderait

Utilise un VPN alors! xD Damn haha

Je vais t'écris à ton gmail qui est affiché dans Github pour les logs si tu veux! Je n'ai jamais fait ça

@ManixQC
Copy link

ManixQC commented Mar 1, 2024

ok


Da: ManixQC @.>
Inviato: venerdì 1 marzo 2024 15:22
A: antoinebou12/hass_renpho @.
>
Cc: MarcelCountry @.>; Comment @.>
Oggetto: Re: [antoinebou12/hass_renpho] cannot_connect (Issue #7)

@ManixQChttps://github.com/ManixQC ok merci ! Je vais continuer à travailer dessus, mais je suis fais IP ban du service. Si tu peux share tes logs ça aiderait

Utilise un VPN alors! xD Damn haha

Je vais t'écris à ton gmail qui est affiché dans Github pour les logs si tu veux! Je n'ai jamais fait ça


Reply to this email directly, view it on GitHub#7 (comment), or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOSSGRD54OXDQYZOZA3LL5TYWCFLJAVCNFSM6AAAAAA5NQRZI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGI4TGMBVGY.
You are receiving this because you commented.Message ID: @.***>

Sorry bud!

I spoke to him about this issue first and then added that having a choice between kg and lbs would be great and then he added the lbs option in the "master" named build.

Right now it shows the new option but then no entity is added, I sent him the logs and he's on it.

Voilà :)

@ManixQC
Copy link

ManixQC commented Mar 1, 2024

is there any news?

I asked him about the new Renpho Health app but that will be a longer and much more complex work. He prefers to get the legacy app working good and be stable before he starts working on the new app.

Good news tho that it is possible to create an account on the legacy "Renpho" app by going through the guest account first :) See above video a couple of comments and weeks ago on how-to!

@MarcelCountry
Copy link

MarcelCountry commented Mar 1, 2024

Who else has the same problem as me? 81 entities detected with unknown value. Thank you

@ManixQC
Copy link

ManixQC commented Mar 1, 2024

Who else has the same problem as me? 81 entities detected with unknown value. Thank you

You have to use the scale for some results to appear. They won't all have values but most of them, and you might need to enable them if they are disabled.

@antoinebou12
Copy link
Owner

I updated the master with some of the fix for the lbs and other stuff

@antoinebou12 antoinebou12 modified the milestones: v2.0.1, v2.0.3 Mar 2, 2024
@antoinebou12
Copy link
Owner

Should have been fix in v2.0.2. Please confirm sorry for your trouble. thank you for testing it with me @ManixQC

@antoinebou12
Copy link
Owner

@jame25
Copy link

jame25 commented Mar 9, 2024

Edit: Correction, v3.0.0 with an outdated account is now working.

Just to add, it is still possible to create an account in the outdated app, if you sign in as a guest first. However I have tried all versions of this component without success.

2024-03-09 23:42:44.380 ERROR (MainThread) [custom_components.renpho.api_renpho] Client error: 503, message='Service Temporarily Unavailable', url=URL('https://renpho.qnclouds.com/api/v3/users/sign_in.json?app_id=Renpho')

@antoinebou12
Copy link
Owner

Try using a proxy with v3.0.1. You need to create a account on the renpho outdated for the proxy input http://35.185.196.38:3128

@antoinebou12
Copy link
Owner

For the new renpho health. I started looking at it. The api is very encrypted so i will need a look of time to decrypt the api request. If someone know more than me in encrypt please contact me by email [email protected]
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants