jubepue / homebridge-petkit-platform

MIT License
13 stars 5 forks source link

Plugin doesn’t work #1

Closed rgreco87 closed 1 year ago

rgreco87 commented 1 year ago

Hi there,

the plugin doesn’t work:

20/2/2023, 22:18:35Petkit Platform BridgeLoaded plugin 'homebridge-petkit-platform' 20/2/2023, 22:18:35Petkit Platform BridgeLoading 1 platforms... 20/2/2023, 22:18:35Petkit Platform BridgeWARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'debug') 20/2/2023, 22:19:15Petkit Platform BridgeRegistering platform 'homebridge-petkit-platform.PetkitPlatform' 20/2/2023, 22:19:15W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx> 20/2/2023, 22:19:15W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx> 20/2/2023, 22:19:15W: Some index files failed to download. They have been ignored, or old ones used instead. 20/2/2023, 22:20:40Petkit Platform BridgeConfiguration change 20/2/2023, 22:20:40petkitplatformbridge stopping

Can you please specify manual configuration? I can’t find country code and/or any other parameter.

Thanks

jubepue commented 1 year ago

Hi, I'm on it. For the moment, while I create the manual, you can put debug: true or false and the country code (Spain is 34, Germany 49) matches the telephone country code.

jubepue

rgreco87 commented 1 year ago

Hi, I'm on it. For the moment, while I create the manual, you can put debug: true or false and the country code (Spain is 34, Germany 49) matches the telephone country code. jubepue

Well, it still doesn't work at all:

2/2/2023, 11:35:14Petkit Platform Bridge starting 22/2/2023, 11:35:25Petkit Platform BridgeLoaded plugin 'homebridge-petkit-platform' 22/2/2023, 11:35:25Petkit Platform BridgeLoading 1 platforms... 22/2/2023, 11:35:25Petkit Platform BridgePetkitPlatformThe config configuration is incorrect, disabling plugin. 22/2/2023, 11:35:25Petkit Platform BridgeBridge is running on port 51836.

This is my config:

{ "platform": "PetkitPlatform", "name": "PetkitPlatform", "options": { "lang": "en", "countryCode": 39, "username": "xxxxxxx", "password": "xxxxxxx", "debug": false } }

jubepue commented 1 year ago

Hi, You must to put “,”

   {
        "options": {
            "username": "xxxxx",
            "password": "xxxxx",
            "lang": "en",
            "countryCode": 39,
            "debug": false
        },
        "name": "PetkitPlatform",
        "platform": "PetkitPlatform"
    },
rgreco87 commented 1 year ago

Your plugin did all the work:

0BED8B2B-9FFB-4534-9E12-948E11221C2B

So I assume it makes a bugged configuration. Please, explain. Thanks.

rgreco87 commented 1 year ago

This is the Bridge configuration:

DF8BC058-814C-46D3-8379-D5ECA78C6F7E

jubepue commented 1 year ago

Hi, Please, delete plugin and ita config and reinstall it

nicoodeimos commented 1 year ago

Having the same issue. configuration is incorrect by default.

jubepue commented 1 year ago

Hi, The last release is ok! Close.