core icon indicating copy to clipboard operation
core copied to clipboard

Nmap tracker keep rediscovering excluded hosts with DHCP

Open petterreinholdtsen opened this issue 6 years ago • 48 comments

When enabling the nmap tracker on a network using DHCP, the excluded host MAC addresses are "rediscovered" when they change IP address. This make the component less useful. Instead of excluding IP addresses, it make more sense to exclude the MAC addresses of devices that should be ignored. It do not really make sense that the nmap tracker is set up to discover MAC addresses, but must be told to ignore IP addresses.

Would you accept a patch to extend the exclude mechanism to look for entries with colon in them and treat them as MAC addresses to ignore?

petterreinholdtsen avatar Sep 10 '19 08:09 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 09 '19 19:12 stale[bot]

Well, the question is still not answered and still valid, so the issue is not "stale". Perhaps someone can have a look and provide some feedback?

petterreinholdtsen avatar Dec 09 '19 20:12 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 08 '20 21:03 stale[bot]

Well, the question is still not answered and still valid, so the issue is not "stale". Perhaps someone can have a look and provide some feedback?

petterreinholdtsen avatar Mar 08 '20 22:03 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 06 '20 23:06 stale[bot]

As can be seen on https://github.com/home-assistant/core/blob/master/homeassistant/components/nmap_tracker/device_tracker.py , there is still no way to exclude specific MAC addresses with the nmap tracker, so this issue is still not solved.

petterreinholdtsen avatar Jun 07 '20 09:06 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 05 '20 19:09 stale[bot]

According to https://github.com/home-assistant/core/blob/master/homeassistant/components/nmap_tracker/device_tracker.py, there is still no way to exclude specific MAC addresses with the nmap tracker, so this issue is still not solved.

-- Happy hacking Petter Reinholdtsen

petterreinholdtsen avatar Sep 05 '20 21:09 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 26 '21 13:01 github-actions[bot]

There is still no way to exclude specific MAC addresses with the nmap tracker, so this issue is still not solved.

-- Happy hacking Petter Reinholdtsen

petterreinholdtsen avatar Jan 26 '21 14:01 petterreinholdtsen

As a fellow HA user, I try to help were I can, so take a look and let me know if this resolves your issue. If so, I'll submit a PR. Let me know either way please.

https://github.com/rocket4321/nmap_tracker

rocket4321 avatar Feb 10 '21 23:02 rocket4321

The exclude_mac code look like it should work. :)

petterreinholdtsen avatar Feb 10 '21 23:02 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 12 '21 00:05 github-actions[bot]

@rocket4321 Did you have any luck with submitting a bull request? The master branch code still have no way to exclude MAC addresses.

petterreinholdtsen avatar May 12 '21 04:05 petterreinholdtsen

The integration needs to be converted to a config flow before new options can be added per ADR0007 (https://github.com/home-assistant/architecture/blob/master/adr/0007-integration-config-yaml-structure.md)

I've opened a PR to convert it to a config flow. https://github.com/home-assistant/core/pull/50429

This opens the door to add additional options once it moves forward.

bdraco avatar May 12 '21 05:05 bdraco

https://github.com/home-assistant/core/pull/50429 has been merged, which now sets the ground work for additional changes to be built on top of it.

bdraco avatar Jun 29 '21 07:06 bdraco

Great. Perhaps the change from @rocket4321 in https://github.com/rocket4321/nmap_tracker can be ported to this new setup and integrated into the official package.

petterreinholdtsen avatar Jun 29 '21 08:06 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 27 '21 08:09 github-actions[bot]

As far as I can tell from https://github.com/home-assistant/core/blob/master/homeassistant/components/nmap_tracker/device_tracker.py the change to exclude mac addresses is still not merged.

petterreinholdtsen avatar Sep 27 '21 08:09 petterreinholdtsen

The fix from @rocket4321 looked good to me, but I do not really know the inner workings on home assistant. Is it hard to add a configuration option?

petterreinholdtsen avatar Nov 23 '21 17:11 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 22 '22 22:02 github-actions[bot]

Sadly it is still a problem.

petterreinholdtsen avatar Feb 23 '22 04:02 petterreinholdtsen

Also looking to do this. still no solution?

lambchop01 avatar Mar 09 '22 21:03 lambchop01

No, a solution very much exists. One that has been working well for years. Coded , uploaded, but curtly rejected by the infinite wisdom of the review staff. I'm personally so thankful that custom components have not [ yet ? ] been removed from the code base...

On Wed, Mar 9, 2022 at 1:23 PM Kevin @.***> wrote:

Also looking to do this. still no solution?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/26553#issuecomment-1063385115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRFZJMT77XW3QKG7G5WZJTU7EJGPANCNFSM4IVEU77A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

rocket4321 avatar Apr 06 '22 15:04 rocket4321

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 15 '22 17:07 github-actions[bot]

It is a bit funny, but mostly sad, to see how little hope there is to get such a feature, which alread had a patch provided, into the official package.

Happy hacking Petter Reinholdtsen

petterreinholdtsen avatar Jul 15 '22 17:07 petterreinholdtsen

Thats why I long gave up on providing my code solutions to the Hass jerks

Jul 15, 2022 10:26:52 AM petterreinholdtsen @.***>:

It is a bit funny, but mostly sad, to see how little hope there is to get such a feature, which alread had a patch provided, into the official package.

Happy hacking Petter Reinholdtsen

— Reply to this email directly, view it on GitHub[https://github.com/home-assistant/core/issues/26553#issuecomment-1185751483], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ASRFZJKHVVDQUVMT6S2C2I3VUGNNXANCNFSM4IVEU77A]. You are receiving this because you were mentioned.[Tracking image][https://github.com/notifications/beacon/ASRFZJIZNPOIBSYUSSJHGZTVUGNNXA5CNFSM4IVEU77KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI2WSDOY.gif]

rocket4321 avatar Jul 15 '22 18:07 rocket4321

Sad to hear, but this issue for sure do not inspire much hope.

petterreinholdtsen avatar Sep 27 '22 08:09 petterreinholdtsen

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Patch is still being ignored, as far as I know.

-- Happy hacking Petter Reinholdtsen

petterreinholdtsen avatar Jan 16 '23 18:01 petterreinholdtsen