-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error displaying the Update Devices screen - Solved #281
Comments
Blockquote
|
Link to original note post from Bruno/ goldriver I tried installing icloud3 V3 from scratch (never installed or use v2) but I guess i might have done something wrong, now it seems I can’t go anywhere. I have been able to setup my icloud account but I think i missed something doing so ,I can’t create or add any devices. If i select .ICLOUD3 DEVICES add, change delete, i get to a page saying i have no devices, i then select ADD DEVICES, enter the IOS device name iPhonebruno14new (2) and a name and I have the following message: image image My question, How can I delete icloud3 completely and start with a new fresh setup ? It seems to always keep the original Apple Id and password ? thanks |
I've added some error catching code to the Configure Settings screen when adding a device and changed a few things around verifying devicename fields. There were some fields being error checked before you had entered any information. Although it had never been a problem, it may have been getting caught in the way you were naming the device Lets see what happens now. Remember, the iCloud3 Devicename on the Add Devices screen is the name you are device_tracker entity assigning to the ic3 device. You will select the iCloud and Mobile App device for that ic3 device on the screen after the Add Devices screen Unzip config_flow.zip into the icloud3 directory and restart HA. |
I took some time to log from the office, unfortunatly, installing and restarting with the new config_flow.py didn't change anything still the same messages Unknown error occured and still nothing in HA logs. |
Send me the icloud3-0.log, icloud3-1.log and home_assistant.log files. Zip them together or as individual files and add ‘.html’ as a new extension to get by gmail filters. Email to geekstergary@gmail.com. EDIT: One thing that is confusing is the mobile apps you have installed and the way iCloud3 is displaying then in the Event Log. You are displaying:
Mine is:
The first part of the line is the friendly name, then the device tracker entity name, then the device model number. It g gets this data from the HA .storage/entity_registry file mobile_app platform items. Mine shows (iPhone15,2) as the model where yours shows (2) for the iphone and (80) for the iPad. The Samsung phone is the only one that makes sense. Can you rename them to remove the (2) and (80) to see what happens? Look at the Mobile App integration and verify the devices and their names. Bring up each device and verify they are not program entries that should be deleted. Look at the. HA Developer Tools > States device _tracker and sensor entities for them also. |
What happens if you disable the mobile app device, restart HA and retry |
Gary,
There is only the icloud3-0.log file in the config/ directory, NO icloud3-1.log I have no clue where icloud is still getting the iphonebruno14new name from as I confirm that I see it changed in both IOs information and in Mobile HA settings |
I just sent a note on GITHUB and here are the log files
I will disable the app and retry
De : Gary Cobb ***@***.***>
Envoyé : 28 février 2024 07:58
À : gcobb321/icloud3_v3 ***@***.***>
Cc : bruno lalongé ***@***.***>; Comment ***@***.***>
Objet : Re: [gcobb321/icloud3_v3] Proxmox vm - Unable to add new device (Issue #281)
What happens if you disable the mobile app device, restart HA and retry
—
Reply to this email directly, view it on GitHub<#281 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABXBTSL23LX2A2PNWPCZCPLYV4SVRAVCNFSM6AAAAABD3YSCBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRYHEZTANJXGQ>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Could not deactivate the HA app, I deleted it, rerstarted HA and still have the same error message (still no icloud3-1.log file) sent the log from this test by email |
The icloud3-0.log file is the current one. The -0.log file is renamed to -1.log at midnight and a new -0.log file is created so it’s not a problem if it doesn’t exist. I have not received the zip files yet. You can also attach them to a comment here if that is easier. Edit: got the 2nd try one |
I just found what you meant by 'disable mobile app' ... |
Here is a new config_flow with a lot of debug tracing code. It will add a lot of variable value trace statements to the icloud3-0.log file. I've also added a lot of error logging statements. Unzip to icloud3 directory and restart ha. Then lets run through this again. If this does not pinpoint what is going on, I'm going to create a configuration file with your devices in it and send it to you to see if that does something. |
Great just so you know,
|
Making progress. Another config_flow with more traces trying to display the update_devices form |
Tried adding a device (always same error) |
I got the file and want to verify it. Post it again without a restart or anything else to see if there is anything that happened since the last one |
Hre is the latest |
|
I redone the config_flow to remove most of the trace statements and concentrate on the general flow now that I know nothing is failing in processing the initial request. Here is a new config_flow.zip file. Unzip config_flow into the icloud3 directory, restart ha and go to it. Go to the other menu page > Format Parameters and set log level to rawdata. This will now log all traffic between you and your icloud acct. I want to see if the data is actually going back and forth. Add any device and see what happens. It will probably fail again but I'm thinking that iC3 is passing a show Update Device form to HA and the HA is generating the error showing the form, not iC3. Then unzip the configuration file below into .storage/icloud3 directory and restart ha and do the same as above. Enter your username & p/w, the auth tokens should already be there. Send me the icloud3-0.log file from before and the new one that is created |
Hi, Sorry for the delay, was working out of the office today Please Find attach ...-step1 and ...step2 files Hope you are not too desperate ... thanks for taking so much time on this, hope this will serve many others |
Do you know anything about computer code. If yes, great. If no, done worry. We will be using a text editor to update a text file to add a character (#) in front of a line of code to turn it into a comment so it will not be processed. It always dies going to HA to display the Update Devices screen. The config_flow.py module I have been sending you contains the instructions HA uses to build the screen and there must be something in that specification HA can not handle. What I will need you to do is to comment out a group of lines that are the specifications for each parameter and then restart HA and try to display the Update Devices screen. We’ll do this one parameter at a time until it works. That will identify the one creating the problem. I’ll give you more detail with examples tomorrow when I’m on my computer. |
No problems, I am not a programmer but I can easily manage this.
Just let me know the blocks to comment and I will proceed with pleasure
Thanks
Bruno ’
Le 29 févr. 2024 à 18:13, Gary Cobb ***@***.***> a écrit :
Do you know anything about computer code. If yes, great. If no, done worry. We will be using a text editor to update a text file to add a character (#) in front of a line of code to turn it into a comment so it will not be processed.
It always dies going to HA to display the Update Devices screen. The config_flow.py module I have been sending you contains the instructions HA uses to build the screen and there must be something in that specification HA can not handle. What I will need you to do is to comment out a group of lines that are the specifications for each parameter and then restart HA and try to display the Update Devices screen. We’ll do this one parameter at a time until it works. That will identify the one creating the problem.
I’ll give you more detail with examples tomorrow when I’m on my computer.
—
Reply to this email directly, view it on GitHub<#281 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABXBTSO3Q3R7RF4GB3AMTCTYV62ZPAVCNFSM6AAAAABD3YSCBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZSGEZTAMJZGY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
There is one line group that is already commented out (lines 4471-4475 --
Good luck and have fun |
Hi Gary by removing the following I was able to pass to the next step: vol.Required(CONF_PICTURE, but trying to go further, I entered all fields on the next page and got the following message trying to submit (I guess this is related to the filed we commented ???) |
Great. This dumps a lot of info building the picture table used to display existing pictures on the Update Devices screen. Lets see what is in that variable. I suspect it has to do with going through the www directory looking for image files. We'll see |
what do you want me to do ? copy the config_flow.py i guess but do i reactivate the commented lines ? |
Forget my previous question, here is the log file trying to add a device with the latest config_flow |
The problem was the files in your www/icon directory far exceeded the number that HA could handle in a dropdown list. HA was giving the error message that said nothing regarding the problem. I have changed the way the picture file selection table is loaded to not include every file it finds in all of the www directories. It now loads the image files in the www/images,/ www/icloud3, www/custom_cards & www/community. On the Tracking and Other parameters screen is a new parameter that lets you choose a directory other than these to load . It will also only load the first 25 files of a directory. This is a full icloud3.zip file since it involved changes to multiple modules. It will still read as v3.0, not v3.0a. |
Thanks Gary, Installed and got the wanted devices configured, will run it for sometimes and report if I find anything else. Maybe the issue titile should be changed ? Thanks again for the time spent on this, really appreciate |
I've simplified things a bit in the Tracking & Other Parameters screen to make it easier for the v2-to-v3 migration. You will need to go to that screen and verify the www directories that should be scanned for image files. Uncheck your www/icon directory if it is checked. The Update Devices > Picture parameter will only load the first 25 images from a directory so it will not die like it was before. Unzip the icloud3_v3.0a.zip file into the icloud3 directory and restart HA. Then go to the Configure Settings and verify the Tracking & Other Parameter > Picture directories and the picture file assigned to you on the Update Devices screen. Thanks for you help getting this error fixed. |
That was more than a pleasure, thanks to you for taking time fixing this issue that seemed only related to my specific case yet ... bruno |
Gary, I have the same problem as golddriver did. At least I am getting the "Unknown error occurred" error when I try and go in to the ICLOUD3 DEVICES area to modify a device. I am on version 3.0.5.2 as of a day or two ago. I believe this problem was present on the previous version I had been on which was 3.0.2 from March. I did go in and uncheck all of the picture directories except for the root of the www folder and I have less than 10 images in the root. I tried using commenting out the "vol.Required(CONF_PICTURE" section of the config_flow.py file in 3.0.5.2 but that didn't get me passed the error. Any suggestions? |
Edit the configuration file and change the picture to ‘None’ for all devices, save it, restart and see if it reoccurs |
In the main ha config? i dont see any mappings to pics there. |
iCloud3 config. In /config/.storage/icloud3/configuration. W what is the error message you are receiving? |
That just says an error occurred but does not say weather the error is. Get the error at _Settings > System > Logs _. Then find the iCloud3 error entry. Copy and paste it in this issue |
Zip the icloud3-0.log file in the _config_directory (same place as the home_assistant.log file) |
-0 for now |
Hi Gary, I still can not get into the menu to edit my ic3 devices. Any thoughts? I emailed you another set of logs a couple days ago. Sorry to be a pest |
Sorry, I had a lot going on. To make sure you are on the latest, unzip icloud3 v3.0.5.6.zip into the icloud3 directory and restart HA. This is v3.0.5.6, which has not been released yet.. Then lets see what happens. I found your files in my junk folder between emails from Ace Hardware and NetFlix. |
OK, interesting. I have upgraded to 3.0.5.6 and I have emailed you the logs. First interesting difference in this version... I am able to navigate into the Devices screen and see the list of devices which is one step further than previously. But now, when trying to update any of the devices in the list, I get the "unknown error" message again. Please note, I captured the logs in two ways. One is debug_all, as in all components in HA. The other is isolated to icloud3 and the aiohttp component as I noticed that seems to be where the detail of the error when I click on each device. In each log file, I tried to click into the update for each of the 5 devices so you'll see the 5 attempts in a row in each log file. Let me know if you need any additional info. Here's an example of the aiohttp error from one of the clicks: |
Logs from Paul Morley
…On Tue, Jul 23, 2024 at 4:42 PM Gary Cobb ***@***.***> wrote:
Sorry, I had a lot going on. To make sure you are on the latest, unzip
icloud3 v3.0.5.6.zip into the icloud3 directory and restart HA. This is
v3.0.5.6, which has not been released yet.. Then lets see what happens.
I found your files in my junk folder between emails from Ace Hardware and
NetFlix.
icloud3 v3.0.5.6.zip
<https://github.com/user-attachments/files/16354542/icloud3.v3.0.5.6.zip>
—
Reply to this email directly, view it on GitHub
<#281 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXWFJB6QDWYLCVDGYBMUSDZN3E4JAVCNFSM6AAAAABD3YSCBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWGM3DMNJUGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
the iCloud3 devicename is iphone14promax. Is the iPhone's name on Settings > General > About also iphone14promax? If it is change the name on the phone to iPhone14 ProMax or something else so they are not the same. Wait a few minutes for the Apple account databases to be updated and restart HA. |
It is the same name on the phone. In fact, I've always made sure to match the IC3 device name with the name on the phone as a matter of consistency. I've done the test (renamed my device to "iphone14 promax" and that appears to have let me in to edit the phones. Can you explain? Each of my other family devices match the IC3 name and the name on the device in General-About. Does it have something to do with the length of the name? |
iC3= There are some internal tables in iC3 that are used to match the iC3 device name and the FamShr devicename and items can not be found if they are the same. I'll add a check for that in the Configuration Update Device screen. |
ok, I completely stand corrected. Regarding your comment about internal tables in iC3 for matching names... Is that something you added in the last year as I'm fairly sure my device name has been that way for over 2 years. Either way, it seems to be working now. Thanks a bunch. One other question, what do the yellow exclamation marks mean beside each of my devices? Are these just indications of which devices are already tracked by another entry? |
I did add it to solve some problems matching the iCloud3-Apple devices at various points in the setup routines and to cross reference them to each other. The triangles do mean they are already assigned (It shows who they are assigned to). In v3.1, the assigned devices will have a red circle with a line through it and listed after the available devices. |
Unable to add new device to iCloud3 on Configure Settings > Update Devices screen.
The text was updated successfully, but these errors were encountered: