iCloud3 v2.1 Device Tracker - iCloud3 v2.2 has been released (10/10/2020)

My only other custom card is working great, and it has no space. It’s a weather card, referenced in my resources section posted earlier.

And the RAW code is:

  - entity: weather.dark_sky
    icons: /local/custom-cards/weather-card/icons/
    type: 'custom:weather-card'

Just for S’s & G’s I cleared all cache. Still same issues.

The following setting from the example does not pass the configuration testing.

device_tracker:
  - platform: icloud3
    username: [email protected]
    password: gary-icloud-password
    tracking _method: famshr
    track_devices:
      - gary_iphone > gary.png
      - lillian_iphone > lillian.png

Invalid config for [device_tracker.icloud3]: [tracking _method] is an invalid option for [device_tracker.icloud3]. Check: device_tracker.icloud3->tracking _method. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/icloud3/

This is directly from the instructions and it doesn’t pass. What am I doing wrong?

I see a space in tracking_method:.

I just noticed this. The example should be fixed, because I copied it directly.

Which method should I use? I went through the trouble to create a new account without 2f authentcation. I added it to my “family”. Is this the one I should try?

As my partner and I use 2FA on our primary Apple accounts, I set up a third account to use the FMF option. This has been working for me for a few months now. Follow the instructions for creating the needed 2FA contacts on the FMF platform and configuration of the IC3 platform.

Config:

device_tracker:
  - platform: icloud3
    username: [email protected]
    password: nunyabidness
    tracking_method: famshr
    track_devices:
      - my_iphone > [email protected]
      - hers_iphone > [email protected]

error in log:

iCloud3 Error: Setup aborted for Group-group1, [email protected]. No devices to track.
7:06 PM custom_components/icloud3/device_tracker.py (ERROR)
iCloud Account devices, cloudiphone(Not Tracked), herssmacbook(Not Tracked), myiphone(Not Tracked), mysapple_watch(Not Tracked), myipad(Not Tracked), herssiphone(Not Tracked)
7:06 PM custom_components/icloud3/device_tracker.py (ERROR)
You are using a custom integration for icloud3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
7:05 PM loader.py (WARNING)

What am I doing wrong?

Are you using the family sharing method?

Would you mind sharing your device_tracker settings?

I’m using FMF.

  - platform: icloud3
    username: !secret icloudfmf_user 
    password: !secret icloudfmf_passwd
    group: tracking
    tracking_method: fmf
    track_devices:
      - gary8 > 2FAuser1@email, hatsmall.jpg
      - gryphon7 > 2FAuser2@email, cowgirl.jpg

Can you use the < / > button in the editor and put your code blocks in there? If there is an error in the indentation of the code we cannot tell because the default editor clobbers it all.

As for the ?v=1.000, it can safely be removed, I just confirmed on my working setup.

I too am using FMF (it’s the default and as such doesn’t need to be specified).
I’m ALSO using a tertiary account that DOES NOT have 2FA enabled on it (as my and my wife’s accounts DO have 2FA on them).

Here is my config:

device_tracker:
# iCloud 3 Integration
  - platform: icloud3
    username: !secret icloud_user
    password: !secret icloud_pass
    track_devices:
      - iphone_x_husband > [email protected]
      - iphone_x_wife > [email protected]

The two me.com addresses both have 2FA
The account used in icloud_user and icloud_pass DOES NOT have 2FA enabled

Sure, Rob. But can you elaborate? Where, and what, should I be putting in and where?

Also, on further troubleshooting, I put all three of my custom cards (already had weather-card, then the icloud-event-log-card and another card that I wanted to use to see if it would be recognized). All of them are their own subdir in config/www/custom_cards.

I removed the weather-card subdir to make sure it wasn’t being pulled from somewhere else. As I expected, the weather-card wasn’t found. I put the weather-card subdir back, and it reappeared. However, the other two subdirs are in the same directory but aren’t found.

Here is my entire Resource section and I think I did what you asked:

resources:
  - type: module
    url: /local/custom_cards/icloud3/icloud3-event-log-card.js?v=1
  - type: module
    url: /local/custom_cards/weather-card/weather-card.js
  - type: module
    url: /local/custom-cards/thermostat-card/thermostat-card.js?v=1

And here is my custom card code:

entity: sensor.icloud3_event_log
title: iCloud Event Log
type: 'custom: icloud3-event-log-card'

This is all in my configuration.yaml
Also you just said something interesting…

“All of them are their own subdir in config/www/custom_cards”

That’s part of the problem. If you installed via HACS (like me) and you’re using my instructions from 10h ago, then the path to the card would be ‘/community_plugin/lovelace-icloud3/icloud3-event-log-card.js’.

But you’re stating that your icloud3 card is in ‘custom_cards’, which is incorrect.

/community_plugin maps to ‘www/community’ so you have the card (and subdir) in the wrong directory, which is why it’s not being found.

If you want to keep them there, then you’d have to use:

type: module
url: /community_plugin/custom_cards/lovelace-icloud3/icloud3-event-log-card.js?v=1.000

Let me clarify, I did try in the directory that you specified some hours ago. However, it didn’t work there, either. So during the day, I’ve put them in the same directory that my weather-card was working from. That’s why it reflects that now.

Then the path to the card needs to mimic your working card…from your earlier post, the path isn’t correct in your resources section of Lovelace.

Further, and please understand that I’m not trying to be argumentative…

As in my resources section you’ll see that the weather-card is in there and works perfectly. But I’ll try there again, if you like.

Correct. As you’ll see in the resources that I posted, all of them are in the same directory with only subdirs changing.

Not argumentative, don’t worry.

The problem is that you’re mixing manually downloaded and added cards, with cards that you’re installing via HACS. I provided paths and associated configurations, so I’m unclear if you’ve used those or not, or attempted to create your own.

Lovelace cards (and custom cards) in my experience are little bits of black magic. Everything has to be totally correct (especially if you’re using the UI editor) or everything breaks unexpectedly without errors.

My only suggestion would be to exactly follow my instructions from 10 hours ago and let’s see where that leads us…

For example, while I think it’s okay to put the icloud3 card deeper in the custom_cards sub-directory, I don’t actually know that it’s okay. I just know that mine is working, and I don’t have it in a sub-directory, and I’m NOT using ‘local’ to reference the path. That’s all I can go on…