Device tracker - Ping multiple ip adresses for one device

Hello people,

I have a question. Currently I am working on an automation that when my laptop is switched on. That my charger and monitor and docking also go on. I do this on the basis of pinging my ip address. But as soon as my docking is switched on. Then my wifi connection goes to lan connection. Unfortunately, I can not fix it in the router because the WiFi and LAN have 2 different mac addresses.

Is it possible to assign 1 device multiple ip addresses in the configuration?

You can have multiple triggers in an automation which may be the way to go about this. Have the automation trigger off either device tracker.

Example below.

You can try to put 2 device trackers (wifi and lan) under same group. Use the group top trigger the automation.

Found a solution for this problem.
I have made a extra sensor and added this,

- platform: template
    sensors:
      laptop_present:
        value_template: >-
          {% if is_state('device_tracker.hostthree', 'home') or is_state('device_tracker.hostfour', 'home') %}
            home
          {% else %}
            Absent
          {% endif %}