Skip to content
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

Not work with firmware 7.17 #403

Open
sagitt opened this issue Jan 25, 2025 · 12 comments
Open

Not work with firmware 7.17 #403

sagitt opened this issue Jan 25, 2025 · 12 comments
Labels
bug Something isn't working

Comments

@sagitt
Copy link

sagitt commented Jan 25, 2025

Describe the issue

After the upgrade to firmware 7.17 HA can't connect to the mikrotik router. Re-create the integration not solve the rpoblem.

Software versions

  • Home Assistant version: 2025.1.4
  • Mikrotik Router integration version: 2.1.4
  • Mikrotik Hardware: cAP AC
  • RouterOS version: 7.17
@sagitt sagitt added the bug Something isn't working label Jan 25, 2025
@kyselyna
Copy link

I have the same problem I have two Mikrotiks at home one loads without a problem but the other one does not load error below.

  1. Model: RB750Gr3 (FW: 7.17) works OK

  2. Model: RBcAPGi-5acD2nD (FW 7.17) does not work log below

log:
ERROR (SyncWorker_8) [custom_components.mikrotik_router.mikrotikapi] Mikrotik xxx.xxx.x.xxx error while building list for path /system/health : no such command or directory (health), no such command prefix

Home Assistant version: 2025.1.4

@Zarox666
Copy link

I have the same with a
RBD53iG-5HacD2HnD

It stopped working with the Upgrade to 7.17.
The WebFig briefly shows the HA User logged in via API, when the Integration reloads.

@nasked
Copy link

nasked commented Jan 26, 2025

This problem has been reported by other users in other post. One solution is downgrade to 7.16 firmware versión but i tried to make it and is imposible to downgrade. Router RB951G-2HnD in my case. Also in Mikrotiks forum i read that this versión 7.17 in not posible to downgrade... i tried many options without changes. We must to wait integratios will be solved...be patient my friends.

@darth-aragoth
Copy link

I successfully downgraded my two hAP AC^3 from 7.17 to 7.16. The problem is in /system/health function, this function of missing in routers, that don't report and values and the integration fails to start. I think there might be an option in integration settings, whether this function should be used i or not.

@ivanminov
Copy link

Until providing of a fix from the author, easy fix is to disable the loading of the all health data.

I did it with change in the following file:
coordinator.py

I change the following peace of code, which is located between 1385-1394 lines in the file (this is the original code):
# ---------------------------
# get_system_health
# ---------------------------
def get_system_health(self) -> None:
"""Get routerboard data from Mikrotik"""
if (
"write" not in self.ds["access"]
or "policy" not in self.ds["access"]
or "reboot" not in self.ds["access"]
):
return

I add just one stupid condition (1 == 1) which always make this check to be true. In this way, all health data will not try to be loaded and the custom component is successfully loaded in the home assistant.

The changed code:
# ---------------------------
# get_system_health
# ---------------------------
def get_system_health(self) -> None:
"""Get routerboard data from Mikrotik"""
if (
"write" not in self.ds["access"]
or "policy" not in self.ds["access"]
or "reboot" not in self.ds["access"]
or 1 == 1
):
return

@sagitt
Copy link
Author

sagitt commented Jan 29, 2025

Until providing of a fix from the author, easy fix is to disable the loading of the all health data.

I did it with change in the following file: coordinator.py

I change the following peace of code, which is located between 1385-1394 lines in the file (this is the original code): # --------------------------- # get_system_health # --------------------------- def get_system_health(self) -> None: """Get routerboard data from Mikrotik""" if ( "write" not in self.ds["access"] or "policy" not in self.ds["access"] or "reboot" not in self.ds["access"] ): return

I add just one stupid condition (1 == 1) which always make this check to be true. In this way, all health data will not try to be loaded and the custom component is successfully loaded in the home assistant.

The changed code: # --------------------------- # get_system_health # --------------------------- def get_system_health(self) -> None: """Get routerboard data from Mikrotik""" if ( "write" not in self.ds["access"] or "policy" not in self.ds["access"] or "reboot" not in self.ds["access"] or 1 == 1 ): return

works for me, thanks.
i still wait the fix anyway :)

@benjaminweb
Copy link

benjaminweb commented Feb 1, 2025

Can anyone report whether 7.17.1 or 7.18beta resolves the issue?

https://mikrotik.com/download/changelogs

Or is the issue to be fixed with the HA integration?

@mnheia
Copy link

mnheia commented Feb 3, 2025

Can anyone report whether 7.17.1 or 7.18beta resolves the issue?

https://mikrotik.com/download/changelogs

Or is the issue to be fixed with the HA integration?

7.17.1 does not help with the issue.

@alirezadigi
Copy link

alirezadigi commented Feb 5, 2025

+1 for the issue

@RedFoxy
Copy link

RedFoxy commented Feb 6, 2025

+1

@Zarox666
Copy link

Zarox666 commented Feb 6, 2025

The changed code: # --------------------------- # get_system_health # --------------------------- def get_system_health(self) -> None: """Get routerboard data from Mikrotik""" if ( "write" not in self.ds["access"] or "policy" not in self.ds["access"] or "reboot" not in self.ds["access"] or 1 == 1 ): return

Thanks for Sharing!!

@tsf0x13
Copy link

tsf0x13 commented Feb 6, 2025

+1 for the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests