hardillb / node-red-contrib-alexa-home-skill

A Node-RED node to control things via Amazon Alexa
https://alexa-node-red.bm.hardill.me.uk/
Apache License 2.0
89 stars 42 forks source link

Error: Connection refused: Not authorized #124

Closed clarcksp closed 2 years ago

clarcksp commented 2 years ago

Hi, I'm using Home Assistant with Node-Red and followed the steps to configure your node. Installation is apparently ok. When I link the account, the devices I created already appear. However, in a few seconds I start to get an alert in the debug:

12/29/2021 06:53:46node: 125ae5c267cbcc09 msg: error "Error: Connection refused: Not authorized"

And automation doesn't work. I've done the reinstallation of node and the problem persists.

hardillb commented 2 years ago
clarcksp commented 2 years ago
hardillb commented 2 years ago

Please follow this link: https://alexa-node-red.bm.hardill.me.uk/lostPassword It will ask for the email address you used to set up the account, then email you a link to a password change form. You can enter the old password again but it will reset what is stored in the database and should let you login in.

clarcksp commented 2 years ago

I just noticed something strange, if I enter my login and new password, it brings me a panel with only two devices. But if I enter the old password it loads me a panel with the devices I had created. The same login has two different passwords.

hardillb commented 2 years ago

That's not possible.

Please follow the instructions to change the password again I want to watch the logs

clarcksp commented 2 years ago

I've just done the procedure for a browser that I've never used, just to avoid cockies. I changed the password to a generic password, entered the panel and it showed only two Devices (Exemplo, A1). I logged out and then with the same login, I entered the password I used when I registered the first time, then the system brought me all the devices I had created (Exemplo, A1, A2 and A3)

hardillb commented 2 years ago

OK, there is something very wrong with your account that doesn't make any sense, It is missing a bunch of required fields.

I'm going to remove all traces from the database (including the devices) and you will need to create a new account

You will need to unlink the skill in the Amazon app and then make sure you hit the log out button on the website and remove all the device nodes (and the config node) from your node-red instance before starting again.

clarcksp commented 2 years ago

I created a completely clean account with another login included. Now it didn't show the error I mentioned. And node status is green/connected