This is a blueprint to find your apple device using Apple iCloud integration.
I used relliky post Alexa, Find My iPhone as a guide, but I couldn’t find a blueprint, so I thought it was a good idea to create one.
Prerequisites
iCloud integration is necessary for this script to work.
blueprint:
name: Find My Apple Device
description: Automate find my apple device using icloud integration.
domain: script
source_url: https://gist.github.com/ggoulart/fdfd3a378c3a6b06acdf2e7aeca955d7
author: https://gist.github.com/ggoulart
input:
apple_device:
name: Apple device
description: Apple device to be found.
selector:
device:
filter:
integration: icloud
apple_account:
name: Apple account email
description: Apple account email linked to device.
default: "[email protected]"
selector:
text:
mode: single
sequence:
- alias: "Set up variables"
variables:
device_id: !input apple_device
device_name: >
{{ device_attr(device_id, "name") }}
- alias: Find Device
service: icloud.play_sound
data:
account: !input apple_account
device_name: "{{ device_name }}"
CHANGELOG
- Version: 1.0 - 24 Dec-23 - Initial release