Help for Automation for notification about a new device (nmap device tracker)

What I have already: Basically I’m using the code from here

This is working fine, however I want to show the following additional information which is not available in the entity_registry_updated event, so I would have to access the entity of the device tracker domain somehow for this information:

  • Hostname
  • Mac

Has anyone any idea how I could get this working?

alias: New Device
description: ''
  - platform: event
    event_type: entity_registry_updated
  - condition: template
    value_template: '{{''.'')[0] == ''device_tracker'' }}'
  - service: notify.notify
      title: New device joined Network
      message: >
        New device tracked: ({{}}) Host:
        {{}} Mac-address: {{}}
mode: single