Device tracker

 device_tracker:

 Only scan AT HOME phones every 10min

home_interval: 10

Wait 180 seconds before marking an undetected phone/device as AWAY

consider_home: 180

    interval_seconds: 15

 Only scan AT every 15 seconds 



  - platform: nmap_tracker

    hosts: 192.168.1.117 #kitchen

    home_interval: 1

    interval_seconds: 15

    consider_home: 180

  - platform: ping

    interval_seconds: 15

    consider_home: 180

    hosts:

      hostone: 192.168.1.117


-----

  - platform: ping

    name: Mi-box-ping

    host: 192.168.1.117

    count: 4

    scan_interval: 30


#    picture: "/local/mi-box.jpg"

  - platform: command_line

    name: miboxwifi

    command: ping -W 1 -c 1 192.168.1.117 > /dev/null 2>&1 && echo success || echo fail

    device_class: connectivity

    payload_on: success

    payload_off: fail


Comments