tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
292 stars 48 forks source link

[Question] How to remove not existing elements? #268

Closed Saentist closed 1 year ago

Saentist commented 1 year ago

Currently I use ROS 7.7, but after some network changes in past, I see some not existing anymore interfaces, with show me version of ROS when they existed last time. I see ROS 7.2.1 7.3.2 etc.

How to mark this not existing entity's and remove them, without reinstall integration? Is it possible to be marked automatically as invalid?

tomaae commented 1 year ago

you can just click on obsolete entity in HA and delete it.

Saentist commented 1 year ago

you can just click on obsolete entity in HA and delete it.

If is 1 or 5 ok but they are lot more then 100+ Need to select one by one to see is it or it isn't invalid.

tomaae commented 1 year ago

you can bulk select obsolete entities in HA. cant imagine how you could end up having 100+ obsolete entities unless its from device tracking

Saentist commented 1 year ago

Vlan's, Vpn's they don't disappear from integration when not exist in MT configuration anymore.

tomaae commented 1 year ago

yes, they are not automatically removed

Saentist commented 1 year ago

Is there a way to mark such objects with software?

tomaae commented 1 year ago

what do you mean?

Saentist commented 1 year ago

some type of comparison, with will mark/rename unexsiting entities ex: vpn156 > "vpn156not-valid"

tomaae commented 1 year ago

no, because they may be valid later. integration have no way of knowing that. but if you did large change like that, just restart HA and delete inactive entities

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.