ptz0n / homebridge-verisure

 Platform plugin for Homebridge allowing to manage and control Verisure devices.
https://www.npmjs.com/package/homebridge-verisure
MIT License
66 stars 15 forks source link

Error configuration Multi-factor authentication #154

Closed devilman85 closed 1 year ago

devilman85 commented 1 year ago

I am having problems with the configuration in question. I run the command in the homebridge terminal but still entering the correct data gives me an error. Solutions?

ptz0n commented 1 year ago

Hi & thanks for reaching out.

devilman85 commented 1 year ago

[23/03/2023, 07:34:55] [homebridge-verisure] Unable to get installations. Please check configured credentials: Request failed with status code 401

version 2.0.0 plug in

command : npx homebridge-verisure

         "email": ",
        "password": "",
        "alarmCode": "0000",
        "doorCode": "000000",
        "installations": [
            "Alias"
        ],
        "pollInterval": 60,
        "showAutoLockSwitch": true,
        "showAudioSwitch": true,
        "audioOffValue": "SILENCE",
        "audioOnValue": "HIGH",
        "platform": "verisure",
        "_bridge": {
            "username": "",
            "port": 

I didn't understand the cookies question what should I configure

ptz0n commented 1 year ago

You should have a list of "cookies" in there next to your "email". See README for example.

fbal21 commented 1 year ago

Hello,

I've got a similar problem when using the command "nix homebridge-verisure" on a Synology nas. I've got the following error message:

error: Request failed with status code 401 at createError (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-verisure/node_modules/axios/lib/core/createError.js:16:15) at settle (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-verisure/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-verisure/node_modules/axios/lib/adapters/http.js:293:11) at IncomingMessage.emit (node:events:539:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], ...... then a full trace of code.

Regards,

ptz0n commented 1 year ago

Looks like your npx cache needs to be cleared, old version is cached.

npx clear-npx-cache

Then you can run the command again:

npx homebridge-verisure