tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
312 stars 55 forks source link

[Bug] Multiple Router devices, showing all Scripts together #278

Closed hiagocosta closed 1 year ago

hiagocosta commented 1 year ago

Describe the issue

I have two Hex S devices, that I include on HA, and all your scripts is showing in together on the scripts entities. Wil be better when I open a device, it shows only scripts configured in that device, not in all devices that I have added on HA.

How to reproduce the issue

add more than one routerboard, and let different scripts on each device you will see that all scripts are on both scripts lists

Expected behavior

I expected to only show scripts integrated on the routerboard that I opened on the list of devices included in this integration

Screenshots

image

Software versions

tomaae commented 1 year ago

hmm, not sure what is a problem here. did both miktorik devices ended up named the same, so teh merged?

hiagocosta commented 1 year ago

no, they have different names and different devices too, one is rb760igs and another is rb750gr3

Em dom., 16 de abr. de 2023 às 19:37, Tomaae @.***> escreveu:

hmm, not sure what is a problem here. did both miktorik devices ended up named the same, so teh merged?

— Reply to this email directly, view it on GitHub https://github.com/tomaae/homeassistant-mikrotik_router/issues/278#issuecomment-1510506964, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIQOOJR3AMDVSHMSG6YA7LXBRYDLANCNFSM6AAAAAAWZAZ76M . You are receiving this because you authored the thread.Message ID: @.***>

tomaae commented 1 year ago

Can you screenshot how this looks under integration for you? image image

for each of you systems?

hiagocosta commented 1 year ago

yes, of course

image

now its strange, because, I can't get scripts that is placed on RT-WORLD, even with the configuration checked to get these

hiagocosta commented 1 year ago

this is another strange behavior

this keeps showing that I have an update, but i'm on the latest versions:

image

tomaae commented 1 year ago

that is problem on mikrotik side. it most likely cannot reach update servers.

can you run debug for at least 2 cycles? I need to understand what is happening with those script sensors internally.

github-actions[bot] commented 1 year ago

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

hiagocosta commented 1 year ago

After a restart it seems to be the dns connections to get the updates, now is corrected I will check the "meshing on scripts" , and if needed, I'lll open another issue to investigate better

github-actions[bot] commented 1 year ago

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[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.