You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/device_tracker.icloud.markdown
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,14 @@ device_tracker:
25
25
- platform: icloud
26
26
username: USERNAME
27
27
password: PASSWORD
28
+
account_name: accountname
28
29
```
29
30
30
31
Configuration variables:
31
32
32
33
- **username** (*Required*): The username for the iCloud account.
33
34
- **password** (*Required*): The password for your given username.
35
+
- **account_name** (*Optional*): The friendly name for the account_name. If this isn't given, it will use the account_name of the username (so the part before the `@` in the email address).
34
36
35
37
<p class='note warning'>
36
38
This may cause battery drainage as it wakes up your device to get the current location.
@@ -40,7 +42,12 @@ This may cause battery drainage as it wakes up your device to get the current lo
40
42
You may receive an email from Apple stating that someone has logged into your account.
41
43
</p>
42
44
43
-
<p class='note warning'>
44
-
If you have two-factor authentication enabled on your iCloud account you will not be able to use this presence detection in HA, even with an app-specific password.
45
-
</p>
45
+
To disable the drainage of the battery, a dynamic interval is being used for each individual device instead of a fixed interval for all devices linked to one account. The dynamic interval is based on the current zone of a device, the distance towards home and the battery level of the device.
46
+
47
+
2 Factor Authentication is enabled for iCloud. The component will ask which device you want to use as Trusted Device and then you can enter the code that has been sent to that device. The duration of this authentication is determined by Apple, but is now at 2 months, so you will only need to verify your account each two months, even after restarting Home Assistant.
46
48
49
+
4 services are available for this component:
50
+
- **icloud_update**: This service can be used to ask for an update of a certain iDevice. The `account_name` and `device_name` are optional.
51
+
- **icloud_lost_iphone**: This service will play the Lost iPhone sound on a certain iDevice. The `account_name` and `device_name` are optional.
52
+
- **icloud_set_interval**: This service will change the dynamic interval of an iDevice. The `account_name` and `device_name` are optional. If `interval` is used in the service_data, the iDevice will be updated with that new interval. That interval will be fixed until the iDevice changes zone or if this service is called again. If `interval` isn't used in the service_data, the interval for that iDevice will revert back to it's default dynamic interval based on it's current zone, it's distance towards home and it's battery level.
53
+
- **icloud_reset_account**: This service can be used to reset an iCloud account. This is helpful when not all devices are being found by the component or if you have added a new iDevice to your account. The `account_name` is optional.
0 commit comments