elad-bar / ha-edgeos

Integration with EdgeOS (Ubiquiti)
134 stars 23 forks source link

Cant switch off (or on) interfaces/ #145

Closed Slona closed 3 months ago

Slona commented 3 months ago

Sorry i dont know which logs or statistics should i attach, but the issue is the following: when i try to disable or enable interface via HA UI then it toggles off and then in a few seconds goes back to its initial status. And there is nothing in logbook

https://github.com/elad-bar/ha-edgeos/assets/928132/ef89cd3c-3f32-42ff-a3ed-3ca3d134b339

A user is admin, i checked that image

elad-bar commented 3 months ago

Can you pls add logs with debug level?

Thanks

elad-bar commented 3 months ago

In addition, which version og ha/integration are you using?

Slona commented 3 months ago

home-assistant_2024-05-10T13-05-26.841Z.log

I have cut the log to last 5 minutes (tried ro disable interface 4 times)

The versios are last available: Core 2024.5.2 Frontend 20240501.1

ha-edgeos v2.1.3

Slona commented 3 months ago

I guess that all information available in logs regarding this issue is the following:

2024-05-10 16:05:06.909 DEBUG (MainThread) [custom_components.edgeos.managers.coordinator] Disable interface eth3
2024-05-10 16:05:06.909 INFO (MainThread) [custom_components.edgeos.managers.rest_api] Set state of interface eth3 to False
2024-05-10 16:05:06.910 WARNING (MainThread) [custom_components.edgeos.managers.rest_api] Request failed, Endpoint: set, Error: set, Line: 266
2024-05-10 16:05:06.910 ERROR (MainThread) [custom_components.edgeos.managers.rest_api] Failed to set state of interface eth3 to False
elad-bar commented 3 months ago

fixed in v2.1.6, pls check

thanks

Slona commented 3 months ago

fixed in v2.1.6, pls check

thanks

Oh God, it works! Thanks so much!

You're breathtaking!