Vaskivskyi / ha-asusrouter

Monitor and control your AsusWRT-powered router from Home Assistant
https://asusrouter.vaskivskyi.com
Apache License 2.0
188 stars 17 forks source link

[Bug] Cannot setup integration #876

Open magicus opened 1 month ago

magicus commented 1 month ago

The problem

This is kind of a duplicate of #847, but that bug report seems to conflate many different problems. This is a single, clear problem, that occurs as soon as you try to install the AsusRouter integration.

I created a brand new fresh HassOS installation, and just installed HACS and then AsusRouter. I still get the same problem.

The problem is that I cannot even add the integration. At the add integration dialog, I get "Unknown error" whatever combination of SSL and explicit or default (0) ports I try. Without SSL the error arrives immediately. If I chose SSL it takes a longer time for the attempt to time out, but the end result is the same.

The logs show:

2024-09-30 14:49:50.548 ERROR (MainThread) [custom_components.asusrouter.config_flow] Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.7.1`: ('Cannot connect to `192.168.7.1` on port `80`. Failed in `_send_request` with error: `Server disconnected`', None)

or

2024-09-30 14:53:59.007 ERROR (MainThread) [custom_components.asusrouter.config_flow] Unknown error of type '<class 'asusrouter.error.AsusRouterTimeoutError'>' during connection to `192.168.7.1`: ('Reached maximum allowed timeout for a single connection attempt: 425.0. The last error: ("Cannot connect to `192.168.7.1` on port `8443`. Failed in `_send_request` with error: `Cannot connect to host 192.168.7.1:8443 ssl:False [Connect call failed (\'192.168.7.1\', 8443)]`", None)', None)

depending on if I'm trying with or without SSL. FWIW, I'm using a self-signed certificate by Asus.

Your device model

AC86U

Firmware type

Merlin

Firmware version

386.14

Integration version with the issue

0.34.0

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

Core 2024.9.3, Superviser 2024.09.1

Is there anything useful in the logs?

No response

Diagnostics information

No response

Additional information

No response

carefulcomputer commented 1 month ago

same issue.