Skip to content

iCloud3 v3 - An advanced iDevice tracker that uses Apple iCloud account and HA Mobile App data for presence detection and location based automations.

License

Notifications You must be signed in to change notification settings

gcobb321/icloud3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iCloud3 v3

CurrentVersion Type HACS

ProjectStage Released

iCloud3 is a device tracker custom component that tracks your iPhones, iPads and Apple Watches. Devices in the Family Sharing List and the HA Mobile App Integration are trackable. The device requests location data from from Apple's iCloud Location Services and monitors various Mobile App sensors and triggers to determine the device's battery level, location, distance, travel time and arrival to Home.

iCloud3 Components

There are 4 major parts to the iCloud3 custom component that are used to configure, track and report device location information. They are:

  • iCloud3 Device Tracker - This monitors the device's location, determines when the device should be located next and updates all the sensors.
  • Event Log - Shows a devices location, how the location changes are handled, the results of location updates, errors, and startup information.
  • Configure Settings - Set up all the iCloud3 tracked devices, Apple Accounts, iCloud3 Dashboards, sensors and other parameters.
  • Dashboard Builder - Create iCloud3 dashboards with tracking results, battery information and the Event Log in several formats. The dashboards can then be customized with the Home Assistant Dashboard Editor and the various items and views can be copied and pasted into other dashboards. The Dashboard Builder is one of the Configure Settings screens.

iCloud3 v3 Highlights

Although Home Assistant has it's own official iCloud component, iCloud3 goes far beyond it's capabilities. The following highlights the important features.

General

  • HA Integration - iCloud3 is a Home Assistant custom integration that is set up and configured from the HA Settings > Devices & Services > Integrations screen.
  • Configuration Settings - Configuration parameters are updated online using various screens and take effect immediately without restarting HA.
  • Updating and Restarting - iCloud3 can be restarted without restarting Home Assistant.
  • Restore state values on restart - The current device_tracker and sensor entity states are restored on a restart. The attributes are not restored but are reset on the first tracking Event.
  • Device_tracker and sensor entities - iCloud3 devices and sensors are Home Assistant entities that are added, deleted and changed on the Update iCloud3 Devices and Sensors configuration screens.
  • Dashboard Builder - iCloud3 Dashboards in various formats are added to Home Assistant when the iCloud3 Integration is first installed.

Device Tracking

  • Track iPhones, iPads and Apple Watches - Track or monitor your iDevices.
  • Location data sources - Location data comes from the iCloud Account and the HA Mobile App.
  • Multiple Apple Accounts - Devices from several Apple Accounts can be tracked (yours, your spouse, children, friend, relative, etc.)
  • Monitors Mobile App activity - Looks for location and trigger changes every 5-seconds.
  • Improved GPS accuracy - GPS wandering errors leading to incorrect zone exits are eliminated.
  • Actively track a device - The device will request it's location on a regular interval based on its distance from Home or another zone.
  • Passively monitor a device - The device does not request it's location. It is updated when another tracked device requests theirs.

Special Zone Tracking

  • Stationary Zone - A dynamic Stationary Zone is created when the device has not moved for a while (doctors office, store, friend's house). This helps conserve battery life.

  • Zone monitoring - The number of devices in each zone is displayed when a device is updated.

  • Zone Distance Sensor Attributes - Shows the distance to the center and edge of the Home zone, distance to other zones and distance to other devices.

  • Track from multiple zones - Tracking results (location, travel time, distance, arrival time, etc.) are reported from the Home zone or another zone (office, second home, parents, etc.).

  • Enter Zone delay - Delay processing Zone Enter triggers in case you are just driving through it.

  • Zone Exits for devices not using the Mobile App - Devices that do not or can not (Apple Watch) use the Mobile App respond to a zone exit when it detects another nearby device has left a zone.

  • Primary Home Zone - Set another zone as the primary zone for the device and report tracking results based on that location. This is useful when you have two homes, on a vacation at another location, triggering automations at your parents house with true devices, etc.

Advanced Features

  • Battery status - Updates the battery level and status (charging/not charging) from iCloud data during a tracking event and from the Mobile App every 5-seconds.
  • Waze Route Service - The travel time and distance to Home or another tracked zone is provided by Waze.
  • Waze Route Service History Database - The travel time and distance data from Waze is saved to a local database and reused when the device is in a previous location.
  • Zone Activity Log - A log can be kept for each time you are in a zone. This log file (.csv format) can be imported into a spreadsheet program and used for expense reporting, travel history, device location monitoring, etc.
  • Nearby devices - The distance to other devices is displayed and used to determine tracking results.
  • Local Time Zone - Event times are normally displayed using the time zone your HA server is in. If, however, you are away from home and in another time zone can, the Event times can be displayed for the time zone you are in.
  • Sensors and more sensors - Many sensors are created and updated with distance, travel time, polling data, battery status, zone attributes, etc. Select only the ones you want to use.

And ...

  • Event Log - The current status and event history of every tracked and monitored device is displayed on the iCloud3 Event Log custom Lovelace card. Information about device configuration, errors and alerts, nearby devices, tracking results, debug information and location request results is displayed.

  • Extensive Documentation - The iCloud3 User Guide explains the three main components, hot to get started, how to migrate from v2, how to install the integration, each of the screens and special features, the service calls that can request updates, locate iPhones and send notification alerts, examples of how to automate opening your garage door when you arrive home, etc.

  • And More - Review the following documentation to see if it will help you track and monitor the locations of your iPhones, iPads and Apple Watches.

Tracking Information Screens with Event Log

The screens below are an example of how the many tracking sensors can be displayed. The screen on the left shows the current tracking formation for Gary while the Event Log on the right shows a history of important tracking events.

iCloud3 Documentation

  • Introduces the many features and components of iCloud3
  • Highlights the configuration screens and parameters
  • Provides example screens, automations and scripts
  • The User Guide is here

Important Links

  • iCloud3 v3 User Guide -The User Guide is quite extensive and can be found here
  • iCloud3 v3 GitHub Repository - The primary GitHub Repository is here
  • iCloud3 v3 Development GitHub Repository - The Development Repository is used for beta version changes that have not been released yet is here
  • Installing as a New Installation - iCloud3 v3 is available on HACS as a prerelease version. Installation instructions are here


Gary Cobb, aka GeeksterGary