jubepue / homebridge-petkit-platform

MIT License
14 stars 6 forks source link

Europe URL #11

Open vswee opened 1 year ago

vswee commented 1 year ago

Provides correct url endpoint for Europe

killi23 commented 1 year 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 6 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 6 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'