-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot connect- connection refused #25
Comments
You are connecting with the NHC Hobby API login details? Not your NHC logins? |
yes, I did. maybe something wrong with MQTT ? i am a noob, so maybe it is wrong istalled by me ? Can I test it ? |
I've just updated my HA and nhc2 with the latest versions (from HA 2021.5.4 to HA 2021.9.6) and I am also now getting 'Connection refused - not authorised'. I know my credentials are correct (see below). I've done some investigating by taking some of the example tests from nhc2-coco and running them on the same box as my HA is running on, with the same credentials, and they work fine. Therefore it looks like something to do with HA, or how nhc2-coco runs within HA. I will have a look on the HA forums, but does anyone have any ideas what's going on here please? |
SOLVED - for me at least. In the end, all I did was delete the Niko integration from the 'Integrations' tab only, restarted HA, and all the devices magically came back. I had to put them all back in their areas etc, but that's not too big a deal even with 74 devices. I did not remove the nhc2 folder in custom_components or the entry in configuration.yaml before restarting, and I did not have to reinstall the integration after restarting - it was just there. I would love to know why this happened! |
What code is in your config.yaml ? |
My config is very simple: Note that if you had the wrong password you would get a different error. My guess is that somehow HA was trying to connect twice, and not allowing the second (correct) connection. Have you tried removing the Niko integration? As part of fault finding this, I used MQTT Explorer on my Windows PC to connect to the NHC2 to check that my credentials were accepted. Then I made a simple test program based on nhc2-coco and tested the connectiion outside of HA, on Windows then on the Linux box running HA. Thus I was able to establish that HA was the problem. Let me know if you would like more details, I know how frustrating this problem is! |
I haven't an integration at all, nothing works... in config.yaml I added nhc2:
but the code has faults in it ( I just started with HA and I am no programmer so I dont know anything from code) |
You say 'the code has faults in it', can you give more details? |
OK. code is working now, thanks for helping me |
How did you solve this error? (Connection refused - not authorised) |
This is what I get when I want to connect : Verbinding geweigerd - niet geautoriseerd. Someone an idea ?
The text was updated successfully, but these errors were encountered: