Notify when Unknown device connects?

Has anyone created an automation to notify when an unknown devices connects to their network?

I have another similar post but if that can’t be done in the current version, notification when unknown devices appear would be helpful…

this is my other thread…


1 Like

Did you ever find an answer to this?

Any update on this? I was looking for the same functionality.
Is there a feature request?

I managed to implement this using AppDaemon. The script checks if the device name is a 12-hex string.

import appdaemon.appapi as appapi
import re

class DeviceNotify(appapi.AppDaemon):
  def initialize(self):
    self.listen_state(self.newDevice, "device_tracker", new = "home")

  def newDevice(self, entity, attribute, old, new, kwargs):
    device_name = self.split_entity(entity)[1]
    if re.match("[a-f0-9]{12}$", device_name):
      message = "Unknown device connected: {}".format(device_name)
1 Like

I did it as a normal notification in yaml.
See at the bottom of this file:

I also copied it from a post on this forum somewhere.

edit: replaced link with permalink and high-lighting