Open gcobb321 opened 1 week ago
Hi, Just upgraded to 3.1 Seem to be having problems.
thanks
Topt is not used yet. Select delete device on the devices list screen. You will have an option to delete all of them.
Gary Cobb, aka geekstergary
From: B-Hartley @.> Sent: Monday, November 4, 2024 1:13:30 PM To: gcobb321/icloud3 @.> Cc: Gary Cobb @.>; Author @.> Subject: Re: [gcobb321/icloud3] iCloud3 v3.1 ➤ Questions & Answers (Issue #384)
Hi, Just upgraded to 3.1 Seem to be having problems.
thanks
— Reply to this email directly, view it on GitHubhttps://github.com/gcobb321/icloud3/issues/384#issuecomment-2455391790, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIOOVBYNWHHXHUJP4NLMJLTZ662MVAVCNFSM6AAAAABRETHRBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGM4TCNZZGA. You are receiving this because you authored the thread.Message ID: @.***>
When I go into the icloud devices screen I get "unknown error occurred" so I can't do it from there. Is there a "back end" way to remove all the data ?
That’s not good. Go to HA Settings > System (I think) and somewhere you can display the errors in the HA log file. Anything related to iCloud3 would be helpful.
After that, you can delete the ‘.storage/icloud3/configuration’ file and restart HA
Gary Cobb, aka geekstergary
From: B-Hartley @.> Sent: Monday, November 4, 2024 1:17:41 PM To: gcobb321/icloud3 @.> Cc: Gary Cobb @.>; Author @.> Subject: Re: [gcobb321/icloud3] iCloud3 v3.1 ➤ Questions & Answers (Issue #384)
When I go into the icloud devices screen I get "unknown error occurred" so I can't do it from there.
— Reply to this email directly, view it on GitHubhttps://github.com/gcobb321/icloud3/issues/384#issuecomment-2455400023, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIOOVB65CAA66DGGTZJGK4TZ6624LAVCNFSM6AAAAABRETHRBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGQYDAMBSGM. You are receiving this because you authored the thread.Message ID: @.***>
Yes, I'd just found the icloud3 folder in .storage/
Errors in log are:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 285, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 532, in async_step_menu_0
return await self.async_step_menu(user_input, errors)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 610, in async_step_menu
return await self.async_step_device_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 2714, in async_step_device_list
await self._build_mobapp_entity_selection_list()
File "/config/custom_components/icloud3/config_flow.py", line 3927, in _build_mobapp_entity_selection_list
Device = Gb.Devices_by_devicename[devicename]
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'xxxxx_iphone'
xxxxx was the name on one of my family sharing members. I'd removed the apple account and made the devices inactive. I couldn't then get to them to change them back.
Deleted config, restarting and trying again.
Thanks
I’ll some error checking to catch that error
Gary Cobb, aka geekstergary
From: B-Hartley @.> Sent: Monday, November 4, 2024 1:41:08 PM To: gcobb321/icloud3 @.> Cc: Gary Cobb @.>; Author @.> Subject: Re: [gcobb321/icloud3] iCloud3 v3.1 ➤ Questions & Answers (Issue #384)
Yes, I'd just found the icloud3 folder in .storage/
Errors in log are:
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 285, in post return await super().post(request, flow_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post result = await self._flow_mgr.async_configure(flow_id, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in async_configure result = await self._async_configure(flow_id, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure result = await self._async_handle_step( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/icloud3/config_flow.py", line 532, in async_step_menu_0 return await self.async_step_menu(user_input, errors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/icloud3/config_flow.py", line 610, in async_step_menu return await self.async_step_device_list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/icloud3/config_flow.py", line 2714, in async_step_device_list await self._build_mobapp_entity_selection_list() File "/config/custom_components/icloud3/config_flow.py", line 3927, in _build_mobapp_entity_selection_list Device = Gb.Devices_by_devicename[devicename]
KeyError: 'xxxxx_iphone'
xxxxx was the name on one of my family sharing members.
I'd removed the apple account and made the devices inactive.
I couldn't then get to them to change them back.
Deleted config, restarting and trying again.
Thanks
—
Reply to this email directly, view it on GitHub<https://github.com/gcobb321/icloud3/issues/384#issuecomment-2455443410>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIOOVB5JXR54CEX3MRYLJKDZ665UJAVCNFSM6AAAAABRETHRBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJVGQ2DGNBRGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
3.1 seems to be working for me, thank you very much for your efforts.
Still can't get it to setup. Wiped config.
Setup again. Sometimes it says 0 of 10 icloud devices tracked. sometimes is says 0 of 27 icloud devices tracked.
But I can't enabled any of them.
not sure if this is related ?
2024-11-04 19:28:20.792 WARNING (MainThread) [custom_components.localtuya.common] [bf2...t8f] Failed to connect to 192.168.21.217: [Errno 113] Connect call failed ('192.168.21.217', 6668)
2024-11-04 19:28:28.219 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 262, in post
return await super().post(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 77, in post
return await self._post_impl(request, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 84, in _post_impl
result = await self._flow_mgr.async_init(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 332, in async_init
flow = await self.async_create_flow(handler, context=context, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3003, in async_create_flow
return handler.async_get_options_flow(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 122, in async_get_options_flow
Gb.OptionsFlowHandler = iCloud3_OptionsFlowHandler()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/config_flow.py", line 365, in __init__
self.initialize_options()
File "/config/custom_components/icloud3/config_flow.py", line 472, in initialize_options
self._initialize_self_PyiCloud_fields_from_Gb()
File "/config/custom_components/icloud3/config_flow.py", line 496, in _initialize_self_PyiCloud_fields_from_Gb
self.username = conf_apple_acct[CONF_USERNAME]
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'username'
is there any way to change from mi to km?
Started all over. deleted all files in .storage for icloud3. Uninstalled the integration and re-installed. unable to login into my apple account: this is the HA log:
`Laatst gelogd: 07:56:38
'AA-NOTSPECIFIED-#0' Traceback (most recent call last): File "/config/custom_components/icloud3/support/start_ic3.py", line 1139, in create_Devices_object pyicloud_ic3_interface.verify_all_apple_accounts() File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 119, in verify_all_apple_accounts Gb.username_valid_by_username[f"AA-NOTSPECIFIED-#{cnt}"]
KeyError: 'AA-NOTSPECIFIED-#0'`
Edit:running latest HA Beta
Update: Solved by resetting apple account
Hello! It's my first configuration, but I keep getting this message: ❌ Entry Error, Invalid Username or Password Credentials are obviously right. I already have purged all the files from .storage and custom_components folders.
Did you just install iCloud3 v3 for the first time? If so, have you followed the instructions in the User Guide for setting up iCloud3?. The screen images and some instructions are out of date and have not been updated for v4.1, released a few days ago. The basics are the same and you will have to go by the screens.
Started all over. deleted all files in .storage for icloud3. Uninstalled the integration and re-installed. unable to login into my apple account: this is the HA log:
`Laatst gelogd: 07:56:38
'AA-NOTSPECIFIED-#0' Traceback (most recent call last): File "/config/custom_components/icloud3/support/start_ic3.py", line 1139, in create_Devices_object pyicloud_ic3_interface.verify_all_apple_accounts() File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 119, in verify_all_apple_accounts Gb.username_valid_by_username[f"AA-NOTSPECIFIED-#{cnt}"]
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'AA-NOTSPECIFIED-#0'`Edit:running latest HA Beta
Update: Solved by resetting apple account
Can you clarify what you mean by resetting Apple account? I'm encountering the same issues.
Did you just install iCloud3 v3 for the first time? If so, have you followed the instructions in the User Guide for setting up iCloud3?. The screen images and some instructions are out of date and have not been updated for v4.1, released a few days ago. The basics are the same and you will have to go by the screens.
I had the same problem, but then managed to solve it. But I can't add a device, I always get the message below. Same when adding an iPhone.
is there any way to change from mi to km?
Open the configuration dialog from icloud3
Select "MENU > CONFIGURE PARAMETERS MENU ᐳ Format Parameters; Display Text As; Waze Route Distance, Time & History; inZone Intervals; Special Zones; Other Parameters"
Select FORMAT SETTINGS ᐳ Log Level; Zone Display Format; Device Tracker State; Unit of Measure; Time & Distance, Display GPS Co
ordinates
Set UNIT OF MEASUREMENT to Metric
Hi, In Add iCloud3 Device windows what is the what is the icloud3 entity id? is it fmshr email? Also I followed the user guide for new install, but still cant add device from family share
I am also getting "0 of 0" tracked devices and are unable to add new devices.
Did you just install iCloud3 v3 for the first time? If so, have you followed the instructions in the User Guide for setting up iCloud3?. The screen images and some instructions are out of date and have not been updated for v4.1, released a few days ago. The basics are the same and you will have to go by the screens.
I had the same problem, but then managed to solve it. But I can't add a device, I always get the message below. Same when adding an iPhone.
I am also getting "0 of 0" tracked devices and are unable to add new devices.
Did you just install iCloud3 v3 for the first time? If so, have you followed the instructions in the User Guide for setting up iCloud3?. The screen images and some instructions are out of date and have not been updated for v4.1, released a few days ago. The basics are the same and you will have to go by the screens.
I had the same problem, but then managed to solve it. But I can't add a device, I always get the message below. Same when adding an iPhone.
Same issue here, 0 of 0 iCloud devices. Not a new install, just upgrade to 3.1.
I also get this during startup stage 4 in the event log: APPLE ACCOUNT NOT LOGGED INTO > A device’s Apple Acct was not logged into and will not be tracked:
When updating the login information it seems to be accepted, also accepting the verification code.
@B-Hartley I will be releasing v3.1.1 tomorrow and it fix the problem getting the devices and locations when iCloud3 starts, leading to the '0 of 0' errors. It was a bug that in the authentication routine, caused by deleting the _icloud2.appleacct cookie files, requiring a new authentication. Also a number of other fixes.
@naseemr The iCloud3 Device Name is the device_tracker entity you are assigning to the iCloud3 device you want to track. The Apple Account and Mobile App devices to be associated with this device_tracker entity are selected on the next page. (Example: gary_iphone)
I have added this to the v3.1.1 Add Device screen. The process is explained in the iCloud3 Docs.
It's been working for me for a few hours. I successfully installed iPhones and Apple Watches. Worked after the last supervisor update.
Release page is here
Devices don’t update after a HA restart. I have to reload the integrations to sync them.
Are there any messages in the Event Log? Is the Apple account being logged into? Are all devices in the account being displayed in the Event Log? Stages 3-5 provide a lot of detail about how Apple and Mobile App devices are associated with the iCloud3 device. Do you see any notifications? When it stops working, what does the Event Log show regarding location updates? Are there any error related to iCloud3 in the HA load at Settings > System > Logs?
Post any questions you have to this issue. Create a new issue if you are having problems.