tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
301 stars 50 forks source link

[Help] WDS sensors #251

Closed daoudeddy closed 1 year ago

daoudeddy commented 1 year ago

Hello, thanks for the amazing Mikrotik integration.

Im using this integration to monitor my Mikrotik remote base stations, but the problem i’m having is that hundreds of WDS devices are being added into the integration automatically.

My question: is there any way to stop adding such devices automatically?

Here’s a screenshot describing what I’m talking about: C86D2528-24DB-4E62-B9F7-19CFF71E808B

tomaae commented 1 year ago

What are those? Do you actually have hundreds of RB912UAG devices?

daoudeddy commented 1 year ago

What are those? Do you actually have hundreds of RB912UAG devices?

I’m monitoring my base stations health, voltage, temp, boot time etc… and there are many clients connected to these base stations.

tomaae commented 1 year ago

Yes, but are those wds actually real mikrotik devices?

daoudeddy commented 1 year ago

Yes, but are those wds actually real mikrotik devices?

i really don’t know what specifically are these wds ports

tomaae commented 1 year ago

can you upload diagnostics?

daoudeddy commented 1 year ago

can you upload diagnostics?

sure, here you go. compressed.zip

tomaae commented 1 year ago

I dont see any references to those devices in diagnostics you provided. is it different integration instance?

daoudeddy commented 1 year ago

Yes it’s different, i have multiple base stations that i need to monitor, and the one in the screenshot is different from the one i sent you the diagnostics from, but all are doing the same. For the moment can you at least tell which line of the code is responsible of adding such devices? its causing the integration to lag sometimes, so i can disable it temporarily.

Edit: commenting this line did stop showing these devices

tomaae commented 1 year ago

so they are all devices you added. I dont understand what is the problem then. you will need to show me your setup in more detail

daoudeddy commented 1 year ago

Would you mind if I submitted a pull request with the new added option to enabled or disable interfaces tracking?

tomaae commented 1 year ago

That part is kind of essential, so I dont plan to remove those defaults. If you dont want them, you can always disable them in HA.