Hello,
I’m trying to find a working method to put a simple button on the dahboard to ring find my iPhone using Find My iPhone integration using Apple iCloud.
I’ve tried script and blueprints but nothing worked.
Tried also iCloud3 v3, is working with all the sensors and so on, but i can’t find the way to make my phone ring.
Hello,
actions:
- data:
message: your message
data:
sound:
name: along_sound_file.wav
critical: 1
volume: 0.5
action: notify.mobile_iphone_2
I use this action triggered by an input boolean change of state, a button on my dashboard is changing the state of the boolean.
You need the HA app installed.
critical should ensure that phone rings even if in silent mode.
Ok, I will give it a try, thanks.
But without the application installed? Using the Find My Phone iCloud feature.
It can be done with iCloud integration, using icloud.play_sound action.
This used to work but since last couple of months it is giving me error and has stopped working
Failed to perform the action icloud.play_sound. Unknown error
Logger: homeassistant.components.websocket_api.http.connection
Source: components/icloud/services.py:105
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:21:39 AM (2 occurrences)
Last logged: 11:21:45 AM
[140249199348128] Error handling message: Unknown error (unknown_error) Orc Trial from 192.168.1.66 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py”, line 28, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 878, in handle_execute_script
script_result = await script_obj.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
msg.get(“variables”), context=context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1836, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 460, in async_run
await self._async_step(log_exceptions=False)
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 526, in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 556, in _handle_exception
raise exception
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 524, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1012, in _async_step_call_service
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<9 lines>…
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 624, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2799, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2849, in _execute_service
return await self._hass.async_add_executor_job(target, service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/icloud/services.py”, line 58, in play_sound
for device in _get_account(service.hass, account).get_devices_with_name(
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/icloud/services.py”, line 105, in _get_account
icloud_account: IcloudAccount | None = hass.data[DOMAIN].get(account_identifier)
~~~~~~~~~^^^^^^^^
KeyError: ‘icloud’
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
First occurred: 11:21:39 AM (2 occurrences)
Last logged: 11:21:44 AM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: ‘icloud’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 524, in _async_step
await getattr(self, handler)()
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1012, in _async_step_call_service
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<9 lines>…
)
^
File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 624, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2799, in async_call
response_data = await coro
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/core.py”, line 2849, in _execute_service
return await self._hass.async_add_executor_job(target, service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/icloud/services.py”, line 58, in play_sound
for device in _get_account(service.hass, account).get_devices_with_name(
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/icloud/services.py”, line 105, in _get_account
icloud_account: IcloudAccount | None = hass.data[DOMAIN].get(account_identifier)
~~~~~~~~~^^^^^^^^
KeyError: ‘icloud’