Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Account Issues]: Testing Account Access | Create Account Through App, Not Website #38

Closed
1 task done
pbaerthel opened this issue Dec 1, 2024 · 14 comments
Closed
1 task done
Assignees
Labels
Documentation Improvements or additions to documentation In progress In progress
Milestone

Comments

@pbaerthel
Copy link

Device model name

Petlibro Dockstream

Device model number

PLWF105

Device type

Fountain

Feature name

Europe or Germany Support

Describe the feature

Sadly ist only Isabel with US Accounts. But I’m a German with German Petlibro account

What problem does this feature solve?

Add Germany server

Available to help with the feature development

  • I agree to help with testing or providing relevant information for this feature request
@jjjonesjr33 jjjonesjr33 added the Pending Pending label Dec 3, 2024
@github-project-automation github-project-automation bot moved this to To triage in Petlibro Dec 3, 2024
@jjjonesjr33 jjjonesjr33 moved this from To triage to Pending in Petlibro Dec 3, 2024
@jjjonesjr33
Copy link
Owner

@pbaerthel at the moment we only have the information for the US region. If you are able to provide the information for your regions API for us to test/add it that would help get the ball rolling on region support.

Please let me know if you are able to assist with this.

P.S. As of right now the workaround is to create a us account and migrate your devices to it.

@jjjonesjr33 jjjonesjr33 added the Question Further information is requested label Dec 3, 2024
@peterjeschke
Copy link
Contributor

FIY I'm using a polar feeder from Germany and it's using the US API even with a German account

@RolfKoenders
Copy link

I thought the exact same thing, but I can login with my EU account (Netherlands) with the US server. I also am not able to find any other api host for any other region.

@jjjonesjr33
Copy link
Owner

@peterjeschke with your account, how was that setup originally? When I go to https://de.petlibro.com/ it says invalid when I try to sign in. Are you able to sign into both the US site https://petlibro.com/ and the Germany site https://de.petlibro.com/?

@jjjonesjr33
Copy link
Owner

@RolfKoenders, I’m curious if logging into the API works universally for any account type, regardless of the website or region it was created on. If that’s the case, it raises the question of why they don’t block creating duplicate accounts with the same information across their various websites.

From my testing, I can create accounts on any of the regional domains for Petlibro and update the region/location in the account settings. However, sharing devices across different regions/locations doesn’t seem to work.

It seems like further investigation may be necessary to determine exactly what works and where.

@jjjonesjr33 jjjonesjr33 removed the Pending Pending label Dec 21, 2024
@jjjonesjr33 jjjonesjr33 moved this from Pending to In progress in Petlibro Dec 21, 2024
@jjjonesjr33 jjjonesjr33 added the In progress In progress label Dec 21, 2024
@peterjeschke
Copy link
Contributor

I created my account using the app and selected "Germany" as my country of origin. The same credentials don't work for the website, neither petlibro.com nor de.petlibro.com.

@peterjeschke
Copy link
Contributor

I was able to sign up at de.petlibro.com with the same email I used for the app again. I guess the shop/website accounts are completely separate from the app accounts.

@Denox78
Copy link

Denox78 commented Dec 23, 2024

Hi everyone,

I'm from France and just ordered my first product

Should I create an account and register my product in the US region?

@peterjeschke
Copy link
Contributor

Hi everyone,

I'm from France and just ordered my first product

Should I create an account and register my product in the US region?

I created my account in the app and chose Germany, you should be fine choosing France

@Denox78
Copy link

Denox78 commented Dec 23, 2024

Hi everyone,
I'm from France and just ordered my first product
Should I create an account and register my product in the US region?

I created my account in the app and chose Germany, you should be fine choosing France

Ok that's great, so you can see all your devices once added on the German's account ?

I'm also wondering if it's possible to delete all devices from an account to activate them on another (just in case I noticed everything's not working as expected)

@jjjonesjr33
Copy link
Owner

From what I’ve noticed, creating an account on the app is completely separate from their web domains. It looks like no matter which region you pick, as long as you create the account through the app, it lets you access the API.

That said, it might be worth testing a bit more to see if accounts from any region on the app work the same way.

@jjjonesjr33 jjjonesjr33 changed the title Sadly only US [Account Issues]: Testing Account Access | Create Account Through App, Not Website Dec 23, 2024
@jjjonesjr33 jjjonesjr33 added Documentation Improvements or additions to documentation and removed Question Further information is requested labels Dec 23, 2024
@jjjonesjr33 jjjonesjr33 pinned this issue Dec 23, 2024
@peterjeschke
Copy link
Contributor

Hi everyone,
I'm from France and just ordered my first product
Should I create an account and register my product in the US region?

I created my account in the app and chose Germany, you should be fine choosing France

Ok that's great, so you can see all your devices once added on the German's account ?

Yes, all devices are visible and shared between three accounts (all in the same region)

I'm also wondering if it's possible to delete all devices from an account to activate them on another (just in case I noticed everything's not working as expected)

Haven't tried that

@peterjeschke
Copy link
Contributor

I did some basic reverse engineering to search for host names in the Polar Feeder firmware and app to figure out if there are different endpoints for non-US scenarios. I couldn't find any in the firmware (either I didn't do it right or it's not stored in the firmware blob - maybe it's synced during the setup with the app).

But here are the (interesting) hostnames I could find:

mqtt.dl-aiot.com
m.designlibro.com.cn
api.designlibro.com.cn
api.us.petlibro.com
mqtt.us.petlibro.com
us.petlibro.com

dl-aiot.com redirects to petlibro.com.
I also found what looks to be fragments of host names:

-svc.dl-aiot.com
-api.dl-aiot.com
-m.dl-aiot.com

But domain names can't start with a hyphen, so something's missing. With some basic subdomain enumeration, I could verify that these subdomains used to exist, but aren't available anymore:

test.m.dl-aiot.com
sit.m.dl-aiot.com
test.api.dl-aiot.com

Maybe the hyphen is just in there by mistake.

Looking in my DNS logs for dl-aiot.com, I can also find these host names:

us-mqtt-0.dl-aiot.com
oss.dl-aiot.com

All of this suggests that there is only one region (US) for the app.

@mavrster
Copy link

mavrster commented Jan 9, 2025

My original account is in New Zealand region and I get the login error

File "/config/custom_components/petlibro/api.py", line 107, in request
raise PetLibroAPIError(f"Code: {data.get('code')}, Message: {data.get('msg')}")
custom_components.petlibro.exceptions.PetLibroAPIError: Code: 1101, Message: MEMBER_NOT_EXIST

I created a new account in US region and got the same error.

@jjjonesjr33 jjjonesjr33 added this to the Other milestone Jan 26, 2025
Repository owner locked and limited conversation to collaborators Jan 27, 2025
@jjjonesjr33 jjjonesjr33 converted this issue into discussion #66 Jan 27, 2025
@github-project-automation github-project-automation bot moved this from In progress to Done in Petlibro Jan 27, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Documentation Improvements or additions to documentation In progress In progress
Projects
Status: Done
Development

No branches or pull requests

6 participants