LAN device detection

Hello

I set up presence detection years ago and I am using Netgear Orbi to find known devices and then using a sensor to show if the device is on or off, instead of home/not_home

Is there a less clunky method to do this now please?

      frontdoorcamera_state:
        friendly_name: Front Garden Camera
        entity_id: device_tracker.frontdoorcamera
        value_template: >-
          {% if is_state('device_tracker.frontdoorcamera', 'home') %}
            ON
          {% elif is_state('device_tracker.frontdoorcamera', 'not_home') %}
            OFF
          {% endif %}

Use a binary template sensor

      frontdoorcamera_state:
        friendly_name: Front Garden Camera
        entity_id: device_tracker.frontdoorcamera
        value_template: "{{ is_state('device_tracker.frontdoorcamera', 'home') }}"