Iphonedetect integration missing

Trying to learn the best way for presence detection. There is an integration, iphonedetect, located here: https://github.com/mudape/iphonedetect

Added this to my configuration.yaml:

  - platform: iphonedetect
    consider_home: 60
    scan_interval: 12
    new_device_defaults:
      track_new_devices: true
    hosts:
      hostname1: 192.168.1.3
      hostname2: 192.168.1.9

When I check the configuration if gives the following error:
Platform error device_tracker.iphonedetect - Integration ‘iphonedetect’ not found.

Here are the particulars of the install:
Raspberry Pi 3 B+

Version 2021.1.5
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.7
Operating System Family Linux
Operating System Version 5.4.79-v7
CPU Architecture armv7l
Timezone America/New_York

Just saw that this requires HACS to work.

It doesn’t require HACS, but it does require you to install it :wink:

You need to manually, or using HACS, copy the required files to /config/custom_components/iphonedetect then restart HA

As Tinkerer said it doesn’t require HACS. You MAY need to add it manually to the device tracker yaml file though… It didn’t automatically add it for me but the component works great

Can you give me an example of how to use this? I have it downloaded, and the entries in my configuration.yaml.
I just don’t know how to reference the entity. Nothing shows up when I try to add a card.
I have added static IPs for the devices in my router.

Thank you

It’s configured via the GUI now image

You have to create a directory called iphonedetect in /root/config/custom_components and add these four files from https://github.com/mudape/iphonedetect/tree/master/custom_components/iphonedetect
,
init.py const.py manifest.json
pycache device_tracker.py

/root/config/custom_components/iphonedetect
[core-ssh iphonedetect]$ ls
init.py const.py manifest.json
pycache device_tracker.py
[core-ssh iphonedetect]$
,

I’m using HA as docker container from Package home-assistant · GitHub and don’t get Iphonedetect being seen in integration. My configuration.yaml looks the same like the one from Ddiaz. I have copied the 4 files to config/custom_components/iphonedetect.
When saying “add integration” and searching for “iPhone Device Tracker” the logo shows up. But when clicking it it say it cannot be added via the UI but must be added via configuration.yaml. Searching for an entity that I defined in the configuration.yaml gives no result.
What am I doing wrong? Appreceate it very much to receive any helpful feedback.

Did you restart HA after editing the YAML?

Sure, I did.

Here is my configuration.yaml. Nothing special I guess:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.17.0.1
    - 192.168.0.10
    - 192.168.3.0/24
    - 192.168.3.10
    - 192.168.10.0/24
    - 192.168.11.0/24

climate: !include generic_thermostat.yaml

sensor:
  - platform: time_date
    display_options:
      - 'date'
      - 'date_time_iso'

device_tracker:
  - platform: iphonedetect
    consider_home: 60
    scan_interval: 12
    new_device_defaults:
      track_new_devices: true
    hosts:
      hostname1: 192.168.3.143

OK, my iPhone (hostname1) is behind a router in a different network but this is not an issue since all ports to the network (from HA to the client) are open and my whole integration between the networks is working pretty well.

Ever get this working?