iCloud3 v3 iDevice Tracker - Version 3

Since you have created the www directory, Restart HA/iCloud3. It will create the icloud3 directory under config/www and copy the config/custom_components/icloud3/event_log_card/icloud3-event-log-card.js file to it when it starts.

The v3 docs are being updated byut the v2 docs talk about this here. The ‘Resource’ stuff should be created automatically so all you would need to do is start at step #6.

Thanks, got the Card now.

Good. I just added a check to create the www/ directory if it did not exist.

1 Like

From time to time i get a e-mail notification from Apple that my account was used to login. It started yesterday after i‘ve configured icloud3.
Is this normal?

Yes, that is normal

I’ll also try again, Gary, sorry didn’t get a notification

about this, sadly, sorry to leave you hanging!

But sounds like lots of tweaks have been made so would be well worth me having another pop at it.

Tried installing the v3 beta, for some reason it’s crashing my Lovelace dashboard. Anything stick out that looks off?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/lovelace/websocket.py:64
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:00:22 PM (5 occurrences)
Last logged: 10:00:53 PM

[23399686265232] Error handling message: Unknown error (unknown_error) xxxxx from 192.xxx.xx.xxx (Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2023.2 (io.robbie.HomeAssistant; build:2023.444; iOS 16.4.0) Mobile/HomeAssistant, like Safari)
[
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py”, line 26, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/homeassistant/homeassistant/components/lovelace/websocket.py”, line 64, in websocket_lovelace_resources
await resources.async_load()
AttributeError: ‘ResourceYAMLCollection’ object has no attribute ‘async_load’

v3 is trying to add the icloud3-event-log-card directory confif/www/icloud3 to the Lovelace resources so you do not have to do it but Lovelace probably has not been initialized so it is failing. You can do that manually. I’m still updating the v3 docs but it is described in the v2.4 docs here. Click the ‘…’ in the top right to get the ‘Resources’ option.

I have opened an issue for this problem on the v3 repository here

Question: Do you have lovelace in your ha configuration.yaml file?

Also, It will help me keep up with the v3 issues if you post your questions and problems on the v3 repository while it is still in beta. Do that here. Thanks.

thanks! moved over to github and yes I do have Lovelace: in my configuration.yaml

First: Thank you for all the effort for given us icloud3!

I’m new to HA and iCloud3 and testing right now.
One Question: Since I do not have yet Nabu or DuckDNS installed I rely on my phone with a Wireguard VPN for using the iOS App. Other family members do not or do not even have the iOS App installed. Up to now I checked their home status with a) router and/or b) a virtual HomeKit switch.
When using icloud3 only I have to set there Inzone Interval to a minimum of 5 minutes, right?

I think 15-minutes is a good interval for devices without the iOS app. That is what I use for my wife’s Watch

Thanks! Will the battery suffer with a shorter interval?

I‘ve added a pic to the www folder but i dont see it in the badge. The badge remains black. Are there other settings necessary?

It’s hard to tell. Every device is different. I’d try different intervals and see how it goes.

Did you set the picture parameter in the iCloud3 configuration for the device? Select ‘?’ above the Event Log Actions to see docs. Look for device parameters. You will also have to restart iCloud3 to pick up the parameter changes.

Thanks, i missed to configure it for the device.

I noticed today that the distance sensor to my home zone had a bigger gap. I was 20 km away but the sensor stated 16 km. Is there a option to tweak this?

@smartmatic The distance sensor can report the calculated straight line distance or the Waze travel distance. Normally, the Waze distance is reported if you are using Waze. The Event Log reports the distance and might show messages as to the activity at the time. It bases the distance on the gps latitude/longitude reported from iCloud or the iOS app and the latitude/longitude of home used by HA.

There is no adjustment to this distance since it is based on the data provided from the other sources.

I am further testing the sensors to understand how they are working but some things are no clear for me:

Badge Status:
I‘ve created some zones in addition to the home zone. I hopped that the badge shows always the zone where i am e.g. when i moved from home zone to school zone that the badge shows school instaed of away. Is that possible?
(The diagnose entity using the device_tracker sensor shows the zone)

Moved Distance:
When i am away and walk from one zone to another zone the moved distance sensor updates every minute. The sensors shows the moved distance between the measure points and not the total moved distance since i am away from home. I would like to the see the total moved distance since. Is that possible is my expectation from the sensor wrong?

TravelTime:
The travel time sensor does not show a value when i was away e.g. bring the kids to school. Should the sensor show this time or do i have here also a misunderstanding how it should work?

Thank you in advance for your time you are taking to answer the questions!

What version of iCloud3 are you using?
Badge - I shows the distance when out of a zone and I thought it showed the zone name if in a zone.
Moved - The moved distance is the distance from one requested location to the next, not the total moved. The total would be very inaccurate if the interval is g greater than several minutes.
Travel Time - That it’s the time reported by Waze. Waze is not used when the calculated distance to Home is less than 1 km because of response time, Location accuracy and the ability of Apple requesting location updates close together.

1 Like