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

[Bug] Integration doesn't work with RouterOS 7.13 Beta #328

Open
Foroxon opened this issue Nov 15, 2023 · 104 comments
Open

[Bug] Integration doesn't work with RouterOS 7.13 Beta #328

Foroxon opened this issue Nov 15, 2023 · 104 comments
Labels
bug Something isn't working testing Solution is being tested

Comments

@Foroxon
Copy link

Foroxon commented Nov 15, 2023

Describe the issue

Integration doesn't work

How to reproduce the issue

Steps to reproduce the behavior:

  1. Upgrade Router OS to 7.13 beta2 on device

Expected behavior

It should work like on Router OS <7.13

Software versions

  • Home Assistant version: HA 2023.11.2
  • Mikrotik Router integration version: v2.1.4
  • Mikrotik Hardware: RB5009UG+S+
  • RouterOS version: 7.13beta2

Diagnostics data

No

Traceback/Error logs

Logger: custom_components.mikrotik_router.mikrotikapi
Source: custom_components/mikrotik_router/mikrotikapi.py:95
Integration: Mikrotik Router (documentation, issues)
First occurred: 14 листопада 2023 р. о 21:42:42 (660 occurrences)
Last logged: 12:16:05

Mikrotik 192.168.86.2 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix

@Foroxon Foroxon added the bug Something isn't working label Nov 15, 2023
@L2jLiga
Copy link
Contributor

L2jLiga commented Nov 21, 2023

Did you tried to install "wireless" package as a workaround?
Since CAPsMAN now moved to this package it should work well

@YaoFei509
Copy link

Did you tried to install "wireless" package as a workaround? Since CAPsMAN now moved to this package it should work well

wireless package will confilict with new wifi-qcom package.
So it's better check whether CAPSMAX exists.

@L2jLiga
Copy link
Contributor

L2jLiga commented Nov 22, 2023

So in wifi-qcom CAPsMAN renamed to CAPsMAX?
If so, then integration now have to check both in order to keep compatibility and provide new functionality

@Foroxon
Copy link
Author

Foroxon commented Nov 22, 2023

So in wifi-qcom CAPsMAN renamed to CAPsMAX? If so, then integration now have to check both in order to keep compatibility and provide new functionality

wifi-qcom is just a driver for wifi hardware and does not add any interfaces.

So, as I understand "wireless" package was renamed to "wifi", so now CAPsMAN can be found on interface wifi capsman

Screenshot 2023-11-22 at 11 18 25

@L2jLiga
Copy link
Contributor

L2jLiga commented Nov 22, 2023

For ROS < 7.13: /caps-man
For ROS >= 7.13: /interface/wifi/capsman when wireless package installed

Is it correct?

@Foroxon
Copy link
Author

Foroxon commented Nov 22, 2023

Yes. But also it was totally rewritten. So there is no more /interface/wifi/capsman/registration-table as it was on /caps-man/registration-table.
Now it's common for local managed wifi and CAPsMAN managed wifi and located in /interface/wifi/registration-table.
It may be similar for other old caps-man functions.

Edit: also we do not need to install additional wireless package to have /interface/wifi/capsman. Now it's included to base RouterOS package.

@L2jLiga
Copy link
Contributor

L2jLiga commented Nov 22, 2023

I'm glad that I decided to stay on 7.12.1 😅

@GlenWi
Copy link

GlenWi commented Nov 25, 2023

I have this exact issue also.

2023-11-25 19:17:10.751 WARNING (SyncWorker_3) [homeassistant.components.mikrotik.hub] Mikrotik 192.168.88.1 failed to retrieve data. cmd=[/caps-man/interface/print] Error: no such command or directory (caps-man), no such command prefix
2023-11-25 19:17:10.753 WARNING (SyncWorker_3) [homeassistant.components.mikrotik.hub] Mikrotik 192.168.88.1 failed to retrieve data. cmd=[/interface/wireless/print] Error: no such command or directory (wireless), no such command prefix
2023-11-25 19:17:10.754 WARNING (SyncWorker_3) [homeassistant.components.mikrotik.hub] Mikrotik 192.168.88.1 failed to retrieve data. cmd=[/interface/wifiwave2/print] Error: no such command or directory (wifiwave2), no such command prefix
2023-11-25 19:17:14.211 ERROR (SyncWorker_5) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:17:29.026 ERROR (SyncWorker_0) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:17:42.597 ERROR (SyncWorker_8) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:18:05.791 ERROR (SyncWorker_2) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:18:49.419 ERROR (SyncWorker_9) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:20:12.635 ERROR (SyncWorker_7) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:21:35.120 ERROR (SyncWorker_5) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:22:57.413 ERROR (SyncWorker_6) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:24:20.032 ERROR (SyncWorker_6) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix

2023-11-25 19:25:42.635 ERROR (SyncWorker_7) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:27:05.064 ERROR (SyncWorker_9) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:27:40.629 ERROR (SyncWorker_9) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:27:48.116 ERROR (SyncWorker_6) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:28:00.331 ERROR (SyncWorker_6) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:28:22.802 ERROR (SyncWorker_0) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:28:27.241 ERROR (SyncWorker_4) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:29:05.370 ERROR (SyncWorker_2) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:29:49.701 ERROR (SyncWorker_7) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:31:12.221 ERROR (SyncWorker_10) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix
2023-11-25 19:32:34.805 ERROR (SyncWorker_1) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 192.168.88.1 error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix

@tomaae tomaae added the planned To be implemented in future release label Dec 7, 2023
@tomaae
Copy link
Owner

tomaae commented Dec 7, 2023

yea, I never touch betas. specially with mikrotik, they often change major things mid betas.
good to know about this tho, if it makes it to at least RC, I will implement it.

@GlenWi
Copy link

GlenWi commented Dec 7, 2023

Hi Tomaae,
Yes, It's on RC2 now so I expect it will be in.

@slackr31337
Copy link

I added a PR to fix this. (Fix for ros 7.13 wireless #332)

@Lieta2
Copy link

Lieta2 commented Dec 15, 2023

7.13 stable was released today.
Before 7.13 these existed:
/interface/wireless/
/caps-man/interface/
Starting from 7.13:
/interface/wifi/
/interface/wifi/capsman
/interface/wifiwave2 is alias to /interface/wifi

@fragtion
Copy link

fragtion commented Dec 15, 2023

The wireless package is now optional. Integration setup should be possible without wireless/capsman, but that is not so. Setup fails to initialize the device...:
image
Routeros v7.13 stable

@M0DDer
Copy link

M0DDer commented Dec 21, 2023

I'm waiting for update

@VladimirV01
Copy link

I have the same issue.

Upgraded to ROS 7.13 and the integration does not work.

@Yamaha0014
Copy link

Hi, After ugraded to 7.13 integration not connect to router. My router C53UiG+5HPaxD2HPaxD (Mikrotik AX3), We wait for update integration. Thenks for Your great job.

@L2jLiga L2jLiga mentioned this issue Jan 3, 2024
@vheneraliuk
Copy link

Why does it take so long to fix this issue? I can't use this integration for about two months now.

@GlenWi
Copy link

GlenWi commented Jan 6, 2024

Same here. Maybe it's a difficult problem to solve? It looks pretty embedded in Mikrotik's roadmap as 7.14 beta is using the same structure now.

@M0DDer
Copy link

M0DDer commented Jan 14, 2024

It Works even at 7.14 !

With this file, added manualy from (you need to replace file)
custom_components/mikrotik_router/coordinator.py

and this changes (you need to add 2 lines)
[custom_components/mikrotik_router/coordinator.py](#332 (comment))

Работает даже в 7.14 !

Скачать и заменить файл
custom_components/mikrotik_router/coordinator.py

Добавить две строчки в другой файл
[custom_components/mikrotik_router/coordinator.py](#332 (comment))

@ranrinc
Copy link

ranrinc commented Jan 15, 2024

It Works even at 7.14 !

With this file, added manualy from (you need to replace file) custom_components/mikrotik_router/coordinator.py

and this changes (you need to add 2 lines) [custom_components/mikrotik_router/coordinator.py](#332 (comment))

Работает даже в 7.14 !

Скачать и заменить файл custom_components/mikrotik_router/coordinator.py

Добавить две строчки в другой файл [custom_components/mikrotik_router/coordinator.py](#332 (comment))

Which coordinator.py do I need to download/replace 1st or 2nd one? TIA

@L2jLiga
Copy link
Contributor

L2jLiga commented Jan 15, 2024

Actually you have 2 more options to install version from #332

Option 1 - Like HACS manual install

Just follow HACS manual install instruction, except steps 2 and 3

download zip file from this specific branch on repo short link via "Code" -> "Download zip"
image

Option 2 - Install via Shell
~/config$ cd custom_components/
~/config/custom_components$ rm -Rf mikrotik_router
~/config/custom_components$ curl https://codeload.github.com/slackr31337/homeassistant-mikrotik_router/zip/refs/heads/ros-7.13 -o master.zip
~/config/custom_components$ unzip master.zip
~/config/custom_components$ mv homeassistant-mikrotik_router-ros-7.13/custom_components/mikrotik_router/ .
~/config/custom_components$ rm -Rf homeassistant-mikrotik_router-ros-7.13/
~/config/custom_components$ rm -Rf master.zip
~/config/custom_components$ ls -l
total 4
drwxrwxr-x 3 user user  4096 Dec 27 14:28 mikrotik_router

@mrbaja
Copy link

mrbaja commented Jan 31, 2024

After using @M0DDer 's fix, integration is working again, however number of wired clients is not working, it always reports 0.
Is anyone else having the same issue?

@GlenWi
Copy link

GlenWi commented Jan 31, 2024

Yes, I have the same issue - 3 wired clients but the integration says 0

@FrankGiesecke
Copy link

Is there any working solution for this issue?

I have two MikroTik machines, one "RB5009UG+S+" an one "hAP ax lite LTE6".
Both integrations run the same error:

2024-02-22 13:32:03.123 ERROR (SyncWorker_2) [custom_components.mikrotik_router.mikrotikapi] Mikrotik xxx.xxx.xxx.xxx error while building list for path /caps-man/registration-table : no such command or directory (caps-man), no such command prefix

But the integration of RB5009 seems to works.
All interfaces are queries and the entities will be available in HA.

But the integration of the hAP doesn't.

Both routers are running on RouterOS v7.13.5

@Onepamopa
Copy link

I haven't added any wireless packages (the router doesn't have wireless anyways)

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 26, 2024
@FrankGiesecke
Copy link

Not stale!

@github-actions github-actions bot removed the stale label Sep 29, 2024
@Real-Ztrawberry
Copy link

A major problem is with the new HACS 2.x you cannot select master any longer. So impossible to get the integration to work on new HA installations. It is now 326 days since 1st reported, wish there was something we could do to help advance the resolution.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 21, 2024
@FrankGiesecke
Copy link

FrankGiesecke commented Oct 21, 2024

That issue won't be closeable until a new version is released.

@github-actions github-actions bot removed the stale label Oct 22, 2024
@lukyrys
Copy link

lukyrys commented Nov 4, 2024

+1

@Tipalo
Copy link

Tipalo commented Nov 16, 2024

+1 running ROS 7.16.1 stable. Tried the fix suggested by Onepamopa but that did not get me up and running. I am on an
RB960PGS hexPOE that does not have wireless but AFAIK the package does contain it.

Copy link

github-actions bot commented Dec 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 4, 2024
@FrankGiesecke
Copy link

This issue is Not stale

@github-actions github-actions bot removed the stale label Dec 5, 2024
@ounyai
Copy link

ounyai commented Dec 13, 2024

I am getting the error error while building list for path /caps-man/registration-table : no such command or directory

@namadori
Copy link

I believe this project is now dead. It's broken since over one year and last commit was almost 6 months ago.
Can somebody knowledgeable just fork this and apply the changes that were already tested in this thread, so we can move over?

@Onepamopa
Copy link

Probably he just needs to create a new release.
The modification I made are @ version v.2.1.4 and are working, there are changes to the file by the developer after that, but not a release.

I'll try to test the latest version manually in HA when I get some free time.

@ResolvITAustralia
Copy link

Maybe we can try to contact him via his website and ask him if he can assist us all. Will give it a go.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 28, 2024
@p0wertiger
Copy link

Still not solved

@github-actions github-actions bot removed the stale label Dec 29, 2024
@usama-liaqat
Copy link

still not solved

@mschabhuettl
Copy link

@tomaae do you need a Co-Maintainer? I'd be glad to contribute! Cheers!

@fragtion
Copy link

fragtion commented Jan 7, 2025

@tomaae do you need a Co-Maintainer? I'd be glad to contribute! Cheers!

Are you ready to tackle the workload? With bugs like #386 that are also still outstanding, would you realistically have any idea how to troubleshoot & resolve these, and have the time to do so?

The developer (@tomaae) is still active (they responded to my issue #386 today in fact) - so the project isn't totally abandoned. There's just a lack of community support to fix bugs.

Whoever takes ownership of this project must be capable of doing some catch-up otherwise there's no point transferring the rights, surely? It's an open-source project after all, so nothing is stopping anyone from fixing any of the existing bugs.

With that said, resolution of this specific issue (#328) is long overdue now, with a community patch already provided (the patch provided by @Onepamopa works). Would be nice if that could be committed, at least.

@namadori
Copy link

namadori commented Jan 7, 2025

The developer (@tomaae) is still active (they responded to my issue #386 today in fact) - so the project isn't totally abandoned. There's just a lack of community support to fix bugs.

I would say "alive", not "active". The last significant commit is almost one year ago, then only a couple really minor ones.
You say there is a lack of community support, but the PR for this specific issue has been sent by a contributor on december 2023. The missing step is building a release, but only the mantainers can do that.

@ResolvITAustralia
Copy link

Let's be patient, I am sure @tomaae will be back when they have time.

@quantum-fc101
Copy link

+1

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

No branches or pull requests