tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
302 stars 51 forks source link

[Feature] Option to exclude device trackers from certain domains (ARP, etc) #360

Closed clau-bucur closed 4 months ago

clau-bucur commented 4 months ago

Is your feature request related to a problem? Please describe.

Device trackers created from the ARP list very often, in my case, create device trackers which are not valid. When I join a new device to the networks it gets a dynamic IP and then I make it static in a different subnet. But the old dynamic IP remains active in the ARP list for quite some time (deleting it from the router does not help, it appears back).

Describe the solution you'd like

Add some options which domains to be included when creating device trackers:

Describe alternatives you've considered

Commenting out lines 2045 -> 2052 in cordinator.py.

Additional context

github-actions[bot] commented 4 months 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.

clau-bucur commented 4 months ago

@tomaae is it not doable?

tomaae commented 4 months ago

no, cant do this from HA side. you can only disable automatic creation of new entities.