dmamontov / hass-miwifi

MiWiFi for Home Assistant
https://community.home-assistant.io/t/xiaomi-miwifi-component-for-tracking-devices-and-managing-routers/288734
Apache License 2.0
154 stars 16 forks source link

Unable to connect my MI Wifi Router 4A Gigabit #39

Closed brunob78 closed 2 years ago

brunob78 commented 2 years ago

I'm trying to connect my router MI 4A Gigabit with your integration but it doesn't work. image

I have an error message "Invalid IP". I try also try with IP 192.168.31.1 and have the same issue.

With the DEBUG mode in HA I have catch this informations:

2022-04-07 16:48:20 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error ConnectError('All connection attempts failed') 2022-04-07 16:48:20 DEBUG (MainThread) [custom_components.miwifi.updater] Finished fetching MiWifi updater data in 0.012 seconds (success: True) 2022-04-07 16:48:20 DEBUG (MainThread) [custom_components.miwifi.config_flow] Verify access code: 404 2022-04-07 16:48:32 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error ConnectError('All connection attempts failed') 2022-04-07 16:48:32 DEBUG (MainThread) [custom_components.miwifi.updater] Finished fetching MiWifi updater data in 0.013 seconds (success: True) 2022-04-07 16:48:32 DEBUG (MainThread) [custom_components.miwifi.config_flow] Verify access code: 404 2022-04-07 16:48:56 DEBUG (MainThread) [custom_components.miwifi.luci] Connection error ConnectTimeout('') 2022-04-07 16:48:56 DEBUG (MainThread) [custom_components.miwifi.updater] Finished fetching MiWifi updater data in 7.517 seconds (success: True) 2022-04-07 16:48:56 DEBUG (MainThread) [custom_components.miwifi.config_flow] Verify access code: 404

Could you help me?

viktak commented 2 years ago

Ah, I see. I misunderstood this part: "Many more Xiaomi and Redmi routers supported by MiWiFi (OpenWRT - Luci API)" Sorry about that.

dmamontov commented 2 years ago

@viktak It's okay. I'll probably add a check to the flow)

dmamontov commented 2 years ago

@effelle https://github.com/dmamontov/hass-miwifi/releases/tag/v2.6.0

Try to update.

effelle commented 2 years ago

Hi Dmitry, I've updated the integration but the sensors are still grayed out and marked as not available. config_entry-miwifi-87f5632f06ed5086300a34e5964038b6.json (1).txt

dmamontov commented 2 years ago

@effelle I just noticed from your screenshot that in my opinion they are not activated for you. Turn them on. They are disabled by default.

effelle commented 2 years ago

Hi, I did enable them but even after some time they were still grayed out. Updating HACS to the latest release solved the issue (with others integrations too). I did not enabled all the sensors yet, I'll do it later today just to check if all are working, but I think is safe to say problem solved.

F.

Message ID: @.***>

dmamontov commented 2 years ago

For now, I'll close the issue. There is no activity, and problems with integration. If anyone has problems it is better to create new ones.