crispy78 / FindMy

Retrieve FindMy data from a jailbroken device and publish it through MQTT for use in Home Assistant
8 stars 0 forks source link

FindMy

Retrieve FindMy Objects data (Airtags, Airpods, etc.) from a jailbroken device and publish it through MQTT for use in Home Assistant

First of you'll need to install the Terminal & SSH addon (https://github.com/home-assistant/addons/blob/master/ssh/DOCS.md). Secondly you'll need a (jailbroken) iOS device (iPhone / iPad) that supports Find My (iOS 14.0 or higher), I've used an iPhone 7 with iOS 15.7.5 and applied the Palera1n jailbreak.

Jailbreaking the iPhone:

Download the .ISO from https://github.com/palera1n/palen1x/releases and follow the instructions as mentioned on https://ios.cfw.guide/using-palen1x.

Setup a passwordless connection

With Home Assistant now able to download the Items.data file the find_my.sh script will generate a device_tracker that you can use in your Maps-card for example.

The script is under development, so changes will me made.

Home Assistant Configuration

Find_my.sh

Copy the shell script to your prefered shell scripts location e.g. /config/shell/find_my Change the listed variables to match your setup:

Configuration.yaml

Add the following line to your configuration and modify it to match your setup:

shell_command:
  find_my: ssh -i /config/ssh/id_rsa -o 'StrictHostKeyChecking=no' root@192.168.1.100 '/config/shell/find_my/find_my.sh'

Automation

You can create an automation as basic as:

alias: "Run the Find_my script"
description: ""
trigger:
  - platform: time_pattern
    minutes: /5
condition: []
action:
  - service: shell_command.find_my
    data: {}
mode: single