is a badge picture required (I have no idea how to set one up)
[email protected] is in my FMF list and it’s found in FMF looking at windows.
I get this message in HA:
2019-07-24 13:12:19 WARNING (SyncWorker_15) [custom_components.icloud3.device_tracker] Could not find friend with email doug_iphone in [email protected] FmF contacts list.
2019-07-24 13:12:19 WARNING (SyncWorker_15) [custom_components.icloud3.device_tracker] [email protected] only has friends with emails:
2019-07-24 13:12:19 WARNING (SyncWorker_15) [custom_components.icloud3.device_tracker] Check iCloud acount for [email protected] and make sure the friend has been added to that account
2019-07-24 13:12:19 ERROR (SyncWorker_15) [custom_components.icloud3.device_tracker] iCloud3 Setup Aborted, no devices to track
2019-07-24 13:12:19 ERROR (SyncWorker_15) [custom_components.icloud3.device_tracker] Devicenames must be included in the’tracked_devices’ configuration parameter
I just read the documentation again…for 1.0.6. It appears that you have dropped support for any icloud account that has enabled 2FA. (the dummy Fmf account idea seems to be gone).
Am I correct…that the only way to use icloud3 is to migrate all my devices to a new icloud account with 2FA disabled?
@ghstudio Not at all. 2fa has always and still is supported. What happened, was Apple started logging everyone out of a 2fa account every half-hour. When iCloud3 logs back in, you get a notification from Apple that someone has logged into your account.
The version 1.1.0 of iCloud3 (in the beta directory here) has added support for Find-my-Friends where you can link 2fa accounts with a non-2fa account to track devices without the notification since you are logging into a non-2fa account. If your normal account is non-2fa, then you will be able to track with that account.
The docs for v1.1.0 are now complete, the ChangeLog lists all the changes from v1.0.6 to v1.1.0. Everything is in the icloud3/beta directory. Take a look at it. There have been postings for the last month about what is coming and how to use it.
The 2fa notifications has been discussed at length in the June and early July postings of this thread. If you want a history of what is going on, you may want to go back to the May/June postings above to see what has transppired.
I have just updated to iCloud3 beta 6. The following changed:
Added the iCloud3 Event Log. This is a Lovelace custom card that lets you view start up, tracking, location, errors and other information generated by iCloud3.
Fixed a problem using fmphn tracking method where the devicename was not being tracked.
The Readme docs have been updated for v1.1.0.
The beta ChangeLog have been consolidated into one v1.0.6 to v1.1.0 ChangeLog.
A few other minor things.
This, I think, is the final beta. I am going away until mid-August so I am not going to issue this as a release until I return. I may issue it as a prerelease, but have a lot of things to do before I leave. All the pieces for my new computer (AMD Ryzen 7 3700, Gigabyte X570 Pro Wifi, 1TB M2 SSD, 16GB CL16 memory, case, etc) are sitting on my office floor and it would be nice to get it up and running and migrated to it.
As always, let me know if there are any issues. And thanks.
Latest code. Still getting dozens of "see not supported errors when using the correct device names. If I change the device name, the see errors go away. In both cases, I’m getting these:
2019-07-25 13:10:00 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] iCloud Location Data Error
2019-07-25 13:10:00 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] Error, no location data for tracking:gary_phone
2019-07-25 13:10:00 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] name 'batteryStatus' is not defined
Traceback (most recent call last):
File "/config/custom_components/icloud3/device_tracker.py", line 2234, in _setup_data_fmf
if batteryStatus in location:
NameError: name 'batteryStatus' is not defined
I have the latest icloud3 installed…I am using the fmf version…
group: family
track_devices:
- doug_iphone > [email protected],doug.jpg
[email protected] is the 2FA Icloud account…and it is my email address.
I see my iphone is found and have all the badges in the overview…but they essentially have no values…eg. Battery level 0…and so on.
I have IOS companion running and connected on my iphone. I even tried a manual send of my location from IOS companion. No change…I also see no times for updates…so I suspect something isn’t initializing.
KeyError: ‘devices’
2019-07-25 15:52:55 ERROR (SyncWorker_10) [custom_components.icloud3.device_tracker] name ‘batteryStatus’ is not defined
Traceback (most recent call last):
File “/config/custom_components/icloud3/device_tracker.py”, line 2234, in _setup_data_fmf
if batteryStatus in location:
NameError: name ‘batteryStatus’ is not defined
Oops, i missed 2 quote marks. Mine was getting same error. Download device_tracker.py again. I put another one (device_tracker_fmf_data_trace.py) that puts a lot of debug code when the fmf location is being extracted if you are still getting errors.
Python used to crash gracefully and long about HA 0.92 they changed made some changed where a simple syntax error took down HA and the Pi had to be rebooted… I posted issues with examples but nothing was ever done.
I’m going to extract an example of debug code so you can tell what is going on.
I did a manual location update from the iphone and now I see the battery level It should have shown up when I started HA, but apparently only updates on some later event. iphone battery status is still “none”, but not sure what that even means. everything else looks “normal”…home, non home, etc.
The eagle may have almost landed …we’ll see in an hour.
device_tracker-fmf_data_trace.py is working again.
Additonal text files describing the HA log file records when iCloud3 starts and an explanation of the fmf_data_trace data when locating devices.
battery info is not available from fmf location data (it was with fmphn data before). The IOS app will update the device_tracker info when it does an update , all I do is pass it along.
2019-07-25 18:57:51 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/config/custom_components/icloud3/device_tracker.py", line 2234, in _setup_data_fmf
if 'batteryStatus' in location:
TypeError: argument of type 'NoneType' is not iterable
2019-07-25 18:57:51 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] iCloud Location Data Error
2019-07-25 18:57:51 ERROR (SyncWorker_0) [custom_components.icloud3.device_tracker] Error, no location data for tracking:gary_phone
2019-07-25 18:57:55 ERROR (SyncWorker_14) [custom_components.icloud3.device_tracker] argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/config/custom_components/icloud3/device_tracker.py", line 2234, in _setup_data_fmf
if 'batteryStatus' in location:
TypeError: argument of type 'NoneType' is not iterable
UPDATE: I dropped in `device_tracker-fmf_data_trace.py' and restarted without error. Still using gary_phone vs gary, but have all the sensor now. I won't be going out until tomorrow. I'll let you know the results.
Strange that the one with the debug code would work but the other doesn’t. The only difference is writing entries to the log file. That indicates some type of timing issue getting the data from fmf. I can add retry code if no location data is returned and see if that works. Also strange that it gets the ‘NoneType’ error since I’m checking for that right before the statement that gives the error.