jubepue / homebridge-petkit-platform

MIT License
13 stars 5 forks source link

Europe URL #11

Open vswee opened 11 months ago

vswee commented 11 months ago

Provides correct url endpoint for Europe

killi23 commented 11 months ago

Thank you for adding the eu server . Still can not get this to recognise my fresh element. Logs telling me I have the wrong phone number .

principalwater commented 2 months ago

Thank you for adding the eu server . Still can not get this to recognise my fresh element. Logs telling me I have the wrong phone number .

Hi @killi23! Try to correct ./lib/petkitopenapi.js file within method "async request...". If one changes attributes like "X-TimezoneId" and "X-Locale", everything should be fine, successfully tried it by myself earlier. For example, I've switched it this way:

principalwater commented 2 months ago

Also if problem still exists, you could try to handle the access_token part like this more manual solution: let access_token = this.tokenInfo.id || 'your-numeric-alphabetic-access-token'