Closed JtwoA closed 1 year ago
I've enabled rawdata logging. Where would I expect to see results as Logbook is showing me nothing, even after iCLOUD3v3 restart.
HA log file. /config/home-assistant.log
1. Remove `PLATFORM: ICLOUD3` statements from `configuration.yaml`.
2. Restart Home Assistant
3. Add iCloud3 on the `Devices & Settings > Integrations` screen
4. Configure iCloud3 on the Integrations screen
5. Restart iCloud3
2022-12-18 09:38:53.110 ERROR (SyncWorker_8) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 990, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 09:38:53.111 ERROR (SyncWorker_8) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 990, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 09:38:53.247 ERROR (SyncWorker_8) [icloud3] 'PyiCloudService' object has no attribute '_webservices'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 828, in create_FamilySharing_object
service_root = self._get_webservice_url("findme")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 799, in _get_webservice_url
if self._webservices.get(ws_key) is None:
AttributeError: 'PyiCloudService' object has no attribute '_webservices'
2022-12-18 09:38:53.276 ERROR (SyncWorker_8) [icloud3] 'PyiCloudService' object has no attribute '_webservices'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 848, in create_FindMyFriends_object
service_root = self._get_webservice_url("findme") #fmf
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 799, in _get_webservice_url
if self._webservices.get(ws_key) is None:
AttributeError: 'PyiCloudService' object has no attribute '_webservices'
2022-12-18 09:38:53.293 ERROR (SyncWorker_8) [icloud3] 'dsInfo'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 117, in authenticate_icloud_account
is_authentication_2fa_code_needed(initial_setup=True)
File "/config/custom_components/icloud3/support/pyicloud_ic3_interface.py", line 178, in is_authentication_2fa_code_needed
elif Gb.PyiCloud.requires_2fa:
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 690, in requires_2fa
needs_2fa_flag = self.data["dsInfo"].get("hsaVersion", 0) == 2 and (
KeyError: 'dsInfo'
2022-12-18 09:38:53.315 ERROR (SyncWorker_8) [icloud3] 'NoneType' object has no attribute 'refresh_client'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3_control.py", line 201, in stage_4_setup_tracking_methods
start_ic3.setup_tracked_devices_for_famshr()
File "/config/custom_components/icloud3/support/start_ic3.py", line 1024, in setup_tracked_devices_for_famshr
devices_desc = get_famshr_devices(PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1315, in get_famshr_devices
Gb.PyiCloud.FindMyFriends.refresh_client()
AttributeError: 'NoneType' object has no attribute 'refresh_client'
2022-12-18 09:38:53.379 ERROR (SyncWorker_8) [icloud3] 'NoneType' object has no attribute 'refresh_client'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3_control.py", line 201, in stage_4_setup_tracking_methods
start_ic3.setup_tracked_devices_for_famshr()
File "/config/custom_components/icloud3/support/start_ic3.py", line 1024, in setup_tracked_devices_for_famshr
devices_desc = get_famshr_devices(PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1315, in get_famshr_devices
Gb.PyiCloud.FindMyFriends.refresh_client()
AttributeError: 'NoneType' object has no attribute 'refresh_client'
2022-12-18 09:38:55.392 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "button-card" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.397 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-card-mod" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.399 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-auto-entities" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.401 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "my-cards" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.404 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-layout-card" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.406 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-state-switch" is already installed, Remove it or disable include custom cards
2022-12-18 09:38:55.587 WARNING (MainThread) [homeassistant.config_entries] Config entry 'LIFX Color 68CBB1' for lifx integration not ready yet: Failed to fetch get version from device: 192.168.1.103; Retrying in background
2022-12-18 09:38:56.942 WARNING (MainThread) [homeassistant.components.weather] custom_components.pirateweather.weather::DarkSkyWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.
2022-12-18 09:38:57.049 WARNING (SyncWorker_8) [homeassistant.helpers.frame] Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for pirateweather using this method at custom_components/pirateweather/weather.py, line 96: units = "si" if hass.config.units.is_metric else "us"
2022-12-18 09:39:00.847 ERROR (MainThread) [homeassistant.components.sensor] slack: Error on device update!
This is after I tried to configure the devices as noted at the open of the issue:
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.381 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.383 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.385 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.388 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.389 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.390 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.391 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.392 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.395 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.399 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.401 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.404 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.406 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.407 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.410 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.412 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.413 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.418 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.420 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.422 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.425 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.426 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.430 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.432 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.434 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.436 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.439 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.440 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.442 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.444 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.445 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.448 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.450 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.450 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.452 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.456 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.458 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.462 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.464 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.465 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.470 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.473 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.474 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.476 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.479 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.481 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.484 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.486 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.487 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.489 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.490 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.491 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.494 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.495 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.500 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.502 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.503 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.504 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.505 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.506 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.507 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.507 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.509 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.510 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.511 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.515 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.517 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.519 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.521 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.524 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.526 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.528 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.529 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.530 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.531 ERROR (MainThread) [icloud3] 'NoneType' object has no attribute 'model'
Traceback (most recent call last):
File "/config/custom_components/icloud3/helpers/entity_io.py", line 137, in get_entity_registry_data
raw_model = device_reg_data.model
AttributeError: 'NoneType' object has no attribute 'model'
2022-12-18 09:58:20.707 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/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 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/icloud3/config_flow.py", line 556, in async_step_menu
return await self.async_step_device_list()
File "/config/custom_components/icloud3/config_flow.py", line 1512, in async_step_device_list
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 1998, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2012, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1315, in get_famshr_devices
Gb.PyiCloud.FindMyFriends.refresh_client()
AttributeError: 'NoneType' object has no attribute 'refresh_client'
- v3 uses the same iCloud 'cookies & session' files that verify the iCloud account access so you would not see a request for the 6-digit verification code since it is still valid.
- The 'raw_model (line 137)' error has been found and fixed.
- The 'Gb.PyiCloud.FindMyFriends.refresh_client(), AttributeError: 'NoneType' object has no attribute 'refresh_client' error has been found and fixed.
@gcobb321 dropped in the new build, restarted HA, went back to configuring. Started with logging into iCloud (success) and on to INCLUDE DEVICES
and...
2022-12-18 18:39:01.977 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret notify_events_token retrieved from secrets.yaml in folder /config
2022-12-18 18:39:01.985 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret john_iphone_14 retrieved from secrets.yaml in folder /config
2022-12-18 18:39:01.986 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret john_watch retrieved from secrets.yaml in folder /config
2022-12-18 18:39:01.989 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret pirate_weather_api_key retrieved from secrets.yaml in folder /config
2022-12-18 18:39:02.205 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret bhyve_un retrieved from secrets.yaml in folder /config
2022-12-18 18:39:02.205 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret bhyve_pwd retrieved from secrets.yaml in folder /config
2022-12-18 18:39:02.206 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret icloud_un retrieved from secrets.yaml in folder /config
2022-12-18 18:39:02.206 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret icloud_pwd retrieved from secrets.yaml in folder /config
2022-12-18 18:39:02.566 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.568 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hubitat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.570 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration icloud3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.573 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration pirateweather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.575 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration lovelace_gen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.576 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.579 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.581 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration simpleicons which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.583 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration weatherbit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.585 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.587 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bhyve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:02.589 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration keymaster which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:39:09.856 WARNING (MainThread) [custom_components.bhyve] The 'bhyve' option is deprecated, please remove it from your configuration
2022-12-18 18:39:11.146 ERROR (MainThread) [homeassistant.components.binary_sensor] The bhyve platform for the binary_sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:39:11.165 ERROR (MainThread) [homeassistant.components.switch] The bhyve platform for the switch integration does not support platform setup. Please remove it from your config.
2022-12-18 18:39:18.910 ERROR (MainThread) [homeassistant.components.sensor] The bhyve platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:39:18.913 ERROR (MainThread) [homeassistant.components.sensor] The version platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:39:18.916 ERROR (MainThread) [homeassistant.components.sensor] The version platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:39:19.820 WARNING (MainThread) [homeassistant.components.generic.camera] Loading generic IP camera via configuration.yaml is deprecated, it will be automatically imported. Once you have confirmed correct operation, please remove 'generic' (IP camera) section(s) from configuration.yaml
2022-12-18 18:39:19.824 WARNING (MainThread) [homeassistant.components.generic.camera] Loading generic IP camera via configuration.yaml is deprecated, it will be automatically imported. Once you have confirmed correct operation, please remove 'generic' (IP camera) section(s) from configuration.yaml
2022-12-18 18:39:21.258 WARNING (MainThread) [icloud3] ICLOUD3 ALERT: The HA `configuration.yaml` file contains a `PLATFORM: ICLOUD3` statement. iCloud3 v3 is now an integration and does not use the `configuration.yaml` or `config_ic3.yam` files.
1. Remove `PLATFORM: ICLOUD3` statements from `configuration.yaml`.
2. Restart Home Assistant
3. Add iCloud3 on the `Devices & Settings > Integrations` screen
4. Configure iCloud3 on the Integrations screen
5. Restart iCloud3
2022-12-18 18:39:22.969 ERROR (SyncWorker_8) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 986, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 18:39:22.971 ERROR (SyncWorker_8) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 986, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 18:39:23.292 WARNING (MainThread) [homeassistant.components.weather] custom_components.pirateweather.weather::DarkSkyWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.
2022-12-18 18:39:23.350 WARNING (SyncWorker_6) [homeassistant.helpers.frame] Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for pirateweather using this method at custom_components/pirateweather/weather.py, line 96: units = "si" if hass.config.units.is_metric else "us"
2022-12-18 18:39:26.652 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses pressure utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2023.4, it should be updated to use unit_conversion.PressureConverter instead. Please report issue to the custom integration author for pirateweather using this method at custom_components/pirateweather/weather.py, line 169: return round(convert_pressure(pressure, PRESSURE_HPA, PRESSURE_INHG), 2)
2022-12-18 18:39:27.579 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "button-card" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:27.604 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-card-mod" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:27.609 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-auto-entities" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:27.614 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "my-cards" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:27.621 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-layout-card" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:27.635 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-state-switch" is already installed, Remove it or disable include custom cards
2022-12-18 18:39:32.970 ERROR (SyncWorker_8) [icloud3] too many values to unpack (expected 3)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 1041, in setup_tracked_devices_for_famshr
device_fname, device_desc, device_raw_model = \
ValueError: too many values to unpack (expected 3)
2022-12-18 18:39:32.999 ERROR (SyncWorker_8) [icloud3] [start_ic:1149] * iCloud3 Error from iCloud Loc Svcs > Error Authenticating account or no data was returned from iCloud Location Services. iCloud access may be down or the Username/Password may be invalid.
2022-12-18 18:39:33.831 ERROR (MainThread) [homeassistant.components.sensor] slack: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/slack/sensor.py", line 50, in async_update
if _time := (await self._client.dnd_info()).get(ATTR_SNOOZE):
File "/usr/local/lib/python3.10/site-packages/slack/web/base_client.py", line 226, in _send
return SlackResponse(**{**data, **res}).validate()
File "/usr/local/lib/python3.10/site-packages/slack/web/slack_response.py", line 176, in validate
raise e.SlackApiError(message=msg, response=self)
slack.errors.SlackApiError: The request to the Slack API failed.
The server responded with: {'ok': False, 'error': 'missing_scope', 'needed': 'dnd:read', 'provided': 'chat:write,chat:write.customize'}
2022-12-18 18:39:34.908 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
2022-12-18 18:39:47.156 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Choose at step 3: default: Choose at step 2: Send to first mobile device if specified: Error executing script. Error for device at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:39:47.689 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Choose at step 3: default: Error executing script. Error for choose at pos 2: Unable to resolve webhook ID from the device ID
2022-12-18 18:39:47.929 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Error executing script. Error for choose at pos 3: Unable to resolve webhook ID from the device ID
2022-12-18 18:39:49.535 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Error executing script. Error for choose at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:39:49.776 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Error executing script. Error for choose at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:39:49.809 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Error while executing automation automation.update_notifications: Unable to resolve webhook ID from the device ID
2022-12-18 18:40:00.755 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for icloud3 doing blocking calls at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:40:00.759 ERROR (MainThread) [icloud3] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:40:00.763 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/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 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/icloud3/config_flow.py", line 567, in async_step_menu
return await self.async_step_device_list()
File "/config/custom_components/icloud3/config_flow.py", line 1534, in async_step_device_list
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices
PyiCloud.FamilySharing.refresh_client()
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client
response = self.Session.post(self._fmip_refresh_url,
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request
self._raise_error(-2, "Failed to establish a new connection")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error
raise api_error
custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2)
Commented out the ICLOUD3 platform entries in configuration.yaml and redid all steps except file replacement.
2022-12-18 18:48:47.225 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret notify_events_token retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.233 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret john_iphone_14 retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.234 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret john_watch retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.237 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret pirate_weather_api_key retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.458 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret bhyve_un retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.459 DEBUG (SyncWorker_0) [homeassistant.util.yaml.loader] Secret bhyve_pwd retrieved from secrets.yaml in folder /config
2022-12-18 18:48:47.809 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.811 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hubitat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.813 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration icloud3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.815 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration pirateweather which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.817 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration lovelace_gen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.820 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.822 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.824 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration simpleicons which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.826 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration weatherbit which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.828 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.830 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration bhyve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:47.833 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration keymaster which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-18 18:48:55.452 WARNING (MainThread) [custom_components.bhyve] The 'bhyve' option is deprecated, please remove it from your configuration
2022-12-18 18:48:56.695 ERROR (MainThread) [homeassistant.components.binary_sensor] The bhyve platform for the binary_sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:48:56.722 ERROR (MainThread) [homeassistant.components.switch] The bhyve platform for the switch integration does not support platform setup. Please remove it from your config.
2022-12-18 18:49:04.780 ERROR (MainThread) [homeassistant.components.sensor] The bhyve platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:49:04.782 ERROR (MainThread) [homeassistant.components.sensor] The version platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:49:04.784 ERROR (MainThread) [homeassistant.components.sensor] The version platform for the sensor integration does not support platform setup. Please remove it from your config.
2022-12-18 18:49:05.755 WARNING (MainThread) [homeassistant.components.generic.camera] Loading generic IP camera via configuration.yaml is deprecated, it will be automatically imported. Once you have confirmed correct operation, please remove 'generic' (IP camera) section(s) from configuration.yaml
2022-12-18 18:49:05.760 WARNING (MainThread) [homeassistant.components.generic.camera] Loading generic IP camera via configuration.yaml is deprecated, it will be automatically imported. Once you have confirmed correct operation, please remove 'generic' (IP camera) section(s) from configuration.yaml
2022-12-18 18:49:12.253 WARNING (MainThread) [homeassistant.components.weather] custom_components.pirateweather.weather::DarkSkyWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.
2022-12-18 18:49:12.372 WARNING (SyncWorker_3) [homeassistant.helpers.frame] Detected integration that accesses the `is_metric` property of the unit system. This is deprecated and will stop working in Home Assistant 2023.1. Please adjust to use instance check instead.. Please report issue to the custom integration author for pirateweather using this method at custom_components/pirateweather/weather.py, line 96: units = "si" if hass.config.units.is_metric else "us"
2022-12-18 18:49:12.573 ERROR (SyncWorker_6) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 986, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 18:49:12.578 ERROR (SyncWorker_6) [icloud3] 'device_tracker.john_iphone'
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 986, in create_Devices_object
Device.ha_device_id = device_tracker_entity_data[f"{DEVICE_TRACKER_DOT}{devicename}"]['device_id']
KeyError: 'device_tracker.john_iphone'
2022-12-18 18:49:13.336 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "button-card" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:13.341 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-card-mod" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:13.344 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-auto-entities" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:13.347 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "my-cards" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:13.350 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-layout-card" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:13.353 ERROR (MainThread) [custom_components.ui_lovelace_minimalist.base] HACS Frontend repo "lovelace-state-switch" is already installed, Remove it or disable include custom cards
2022-12-18 18:49:15.357 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses pressure utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2023.4, it should be updated to use unit_conversion.PressureConverter instead. Please report issue to the custom integration author for pirateweather using this method at custom_components/pirateweather/weather.py, line 169: return round(convert_pressure(pressure, PRESSURE_HPA, PRESSURE_INHG), 2)
2022-12-18 18:49:20.106 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
2022-12-18 18:49:20.542 ERROR (MainThread) [homeassistant.components.sensor] slack: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/slack/sensor.py", line 50, in async_update
if _time := (await self._client.dnd_info()).get(ATTR_SNOOZE):
File "/usr/local/lib/python3.10/site-packages/slack/web/base_client.py", line 226, in _send
return SlackResponse(**{**data, **res}).validate()
File "/usr/local/lib/python3.10/site-packages/slack/web/slack_response.py", line 176, in validate
raise e.SlackApiError(message=msg, response=self)
slack.errors.SlackApiError: The request to the Slack API failed.
The server responded with: {'ok': False, 'error': 'missing_scope', 'needed': 'dnd:read', 'provided': 'chat:write,chat:write.customize'}
2022-12-18 18:49:26.178 ERROR (SyncWorker_6) [icloud3] too many values to unpack (expected 3)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/start_ic3.py", line 1041, in setup_tracked_devices_for_famshr
device_fname, device_desc, device_raw_model = \
ValueError: too many values to unpack (expected 3)
2022-12-18 18:49:26.193 ERROR (SyncWorker_6) [icloud3] [start_ic:1149] * iCloud3 Error from iCloud Loc Svcs > Error Authenticating account or no data was returned from iCloud Location Services. iCloud access may be down or the Username/Password may be invalid.
2022-12-18 18:49:32.470 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Choose at step 3: default: Choose at step 2: Send to first mobile device if specified: Error executing script. Error for device at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:49:34.722 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Choose at step 3: default: Error executing script. Error for choose at pos 2: Unable to resolve webhook ID from the device ID
2022-12-18 18:49:35.251 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Dismiss core update notification if off: choice 1: Error executing script. Error for choose at pos 3: Unable to resolve webhook ID from the device ID
2022-12-18 18:49:35.610 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Choose at step 1: On startup, dismiss core and os notifications as they occurred while off: Error executing script. Error for choose at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:49:35.754 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Update notifications: Error executing script. Error for choose at pos 1: Unable to resolve webhook ID from the device ID
2022-12-18 18:49:35.837 ERROR (MainThread) [homeassistant.components.automation.update_notifications] Error while executing automation automation.update_notifications: Unable to resolve webhook ID from the device ID
2022-12-18 18:50:01.100 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for icloud3 doing blocking calls at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:50:01.105 ERROR (MainThread) [icloud3] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:50:01.109 ERROR (MainThread) [icloud3] Failed to establish a new connection (Status Code -2)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/icloud3/config_flow.py", line 1252, in async_step_icloud_account
await self._log_into_icloud_account(user_input, self.step_id)
File "/config/custom_components/icloud3/config_flow.py", line 1385, in _log_into_icloud_account
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices
PyiCloud.FamilySharing.refresh_client()
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client
response = self.Session.post(self._fmip_refresh_url,
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request
self._raise_error(-2, "Failed to establish a new connection")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error
raise api_error
custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2)
2022-12-18 18:50:13.375 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for icloud3 doing blocking calls at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:50:13.382 ERROR (MainThread) [icloud3] Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
2022-12-18 18:50:13.387 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/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 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/icloud3/config_flow.py", line 567, in async_step_menu
return await self.async_step_device_list()
File "/config/custom_components/icloud3/config_flow.py", line 1534, in async_step_device_list
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices
PyiCloud.FamilySharing.refresh_client()
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client
response = self.Session.post(self._fmip_refresh_url,
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request
self._raise_error(-2, "Failed to establish a new connection")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error
raise api_error
custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2)
Delete ‘/config/.storage/icloud3/configuration’ (The iCloud3 configuration file) and restart HA. That will migrate the days again.
If you get the same error:
The error referenced a ‘ john_iphone’ which it couldn’t find. I’m wondering if it is set in secrets or no longer exists. HA makes it hard to figure out what caused an error by just saying something went wrong. I’ll put some error trapping in the code that originally caused the error tomorrow and send you the update before posting a new beta release.
Gary
Deleting the ‘/config/.storage/icloud3/configuration’ (The iCloud3 configuration file) and restarting HA got me past the error. I have had to re-add all devices manually thru Configurator.
Oddities: The iCloud3 Event Log card in my HA via web browser (even after deleting cache) shows as: It shows tracking nothing.
On my iPad Mini it shows as:
It shows tracking only my iPhone and none of the other devices be they FamShr or other. Looking at the entities it shows in "Configure Tracked Devices" it's trying to track any with _2
appending the device tracker name. That's not the devices it should be.
The bottom image from your iPad mini shows iCloud3 Event Log v3 where the other does not show the v3 (old version) so the cache did not clear. Are you using Cringe, Safari, Edfe or something else. The docs have the steps I use to clear Chrome and Edge here. Did you go back to the tab with screen and select ‘refresh’?
The _2 after the device _tracker refers to the one set up for the iOS app, not iCloud3. You can see the actual iOS app device names on the mobile app Integration screen.
The FamShr Device under Tracked Devices showers John iPhone but then shows NOT IN FAMILY SHARE LIST. That says there was a problem accessing the iCloud account to get those names. I can see one line for the FmF devices (test2…) at the bottom of the screen and would like to see the the rest of the startup events. Export the Event Log and send to geekstergary@gmail.com. Do Event Log > Actions > Export Event Log. The file is in the /config directory with the HA files. Also, Event Log > Actions > Show Tracking Monitors shows a lot more detail about what happens under the covers. Also Configurator > Menu page 2 > other parameters > log level > Rawdata will dump the iCloud account traffic and detail iCloud3 details to the HA log file (home-assistant.log). Restart HA and send me that file to. See here for an example of what it shows
Brave browser stubbornly ignored hard refresh so I manually cleared the cache from within it's settings. All instances now seeing the v3 Event Log Viewer as expected.
I'll restart iC3v3 and export the logs ~momentarily~. Sent.
@gcobb321 did you receive the logs yesterday?
I did and was about ready to look at them.
HA, no worries - just wanted to make sure my ESP hadn’t eaten them!
-- John Alan
01000011 01110101 01110010 01101001 01101111 01110011 01101001 01110100 01111001 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01101101 01101111 01110011 01110100 00100000 01110110 01100001 01101100 01110101 01100001 01100010 01101100 01100101 00100000 01100110 01100101 01100001 01110100 01110101 01110010 01100101 00100000 01101111 01100110 00100000 01101001 01101110 01110100 01100101 01101100 01101100 01101001 01100111 01100101 01101110 01110100 00100000 01101100 01101001 01100110 01100101 00101110
On Dec 20, 2022, at 09:04, Gary Cobb @.***> wrote:
I did and was about ready to look at them.
— Reply to this email directly, view it on GitHub https://github.com/gcobb321/icloud3_v3/issues/6#issuecomment-1359414336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDD4KDGB6WNAEWGLZZOZ6TWOG4GDANCNFSM6AAAAAATCRXJLI. You are receiving this because you authored the thread.
Right at the start, there is an error logging into your iCloud account and no location data was available. That leads to a device id (from the iCloud account) error not found since there was no data. All that was doing was trying to fill in some device model description which is not really needed. It also prevented some other device setup to be done.
The Event Log shows John IPhone only linking through the iOS app. Have you been able to log into the iCloud account yet? The HA log only shows basic error messages and I would like to see all the iCloud account raw data if you still can not connect to your account.
Configurator > Menu Page 2 > Other Parameters > Log Level - RawData
restart HA and send me the HA log file again.
@gcobb321 I've not had any issues logging into the iCloud account (according to the messages received).
After following the steps here I was still able to connect to the iCloud account just fine (just having to go thru 2FA.)
Have you checked the ICLOUD ACCOUNT screen to make sure the username and password converted correctly. The password is now encrypted in the configuration file. Maybe it didn’t decrypt correctly. The Show… option on that screen will display them.
———————— Gary Cobb On Dec 20, 2022 at 9:05 AM -0500, John @.***>, wrote:
HA, no worries - just wanted to make sure my ESP hadn’t eaten them!
-- John Alan
01000011 01110101 01110010 01101001 01101111 01110011 01101001 01110100 01111001 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01101101 01101111 01110011 01110100 00100000 01110110 01100001 01101100 01110101 01100001 01100010 01101100 01100101 00100000 01100110 01100101 01100001 01110100 01110101 01110010 01100101 00100000 01101111 01100110 00100000 01101001 01101110 01110100 01100101 01101100 01101100 01101001 01100111 01100101 01101110 01110100 00100000 01101100 01101001 01100110 01100101 00101110
On Dec 20, 2022, at 09:04, Gary Cobb @.***> wrote:
I did and was about ready to look at them.
— Reply to this email directly, view it on GitHub https://github.com/gcobb321/icloud3_v3/issues/6#issuecomment-1359414336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDD4KDGB6WNAEWGLZZOZ6TWOG4GDANCNFSM6AAAAAATCRXJLI. You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
On this dialogue?
Everything is clear and correct.
Did the login and devices start tracking in iCloud3 or are you still having problems? I kinda forgot where things stand with your issue then. I am working on several right now and will probably do a beta 3 this afternoon but wanted to try to cure your issue if it still exists.
Thanks for being on the bleeding edge
———————— Gary Cobb On Dec 20, 2022 at 10:27 AM -0500, John @.***>, wrote:
On this dialogue? Everything is clear and correct. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
I hear ya on losing track, been working a few things here myself.
The issue at the moment is that the only device being tracked is john_iphone. None of the others, though configured, are tracking.
Ok, this is interesting... I went to grab you a screenshot of the configured devices and got this again:
After you get that error, go to HA Settings > System > Logs. It should shot an Exception error message at the top of the list with a bunch of code and line numbers showing where it happened. Send me a screenshot.
———————— Gary Cobb On Dec 20, 2022 at 10:35 AM -0500, John @.***>, wrote:
I hear ya on losing track, been working a few things here myself. The issue at the moment is that the only device being tracked is john_iphone. None of the others, though configured, are tracking. Ok, this is interesting... I went to grab you a screenshot of the configured devices and got this again: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Log Details (ERROR)
This error originated from a custom integration.
Logger: aiohttp.server
Source: custom_components/icloud3/support/pyicloud_ic3.py:272
Integration: iCloud3 Device Tracker ([documentation](https://gcobb321.github.io/icloud3_v3_docs/#/), [issues](https://github.com/gcobb321/icloud3/issues))
First occurred: 10:33:33 (2 occurrences)
Last logged: 10:38:27
Error handling request
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/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 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/icloud3/config_flow.py", line 567, in async_step_menu
return await self.async_step_device_list()
File "/config/custom_components/icloud3/config_flow.py", line 1534, in async_step_device_list
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices
PyiCloud.FamilySharing.refresh_client()
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client
response = self.Session.post(self._fmip_refresh_url,
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request
self._raise_error(-2, "Failed to establish a new connection")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error
raise api_error
custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2)
Logger: icloud3
Source: util/async_.py:168
First occurred: 10:02:26 (3 occurrences)
Last logged: 10:38:27
Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
Logger: homeassistant.util.async_
Source: util/async_.py:180
First occurred: 10:02:26 (3 occurrences)
Last logged: 10:38:27
Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for icloud3 doing blocking calls at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
This error originated from a custom integration.
Logger: icloud3
Source: custom_components/icloud3/support/pyicloud_ic3.py:272
Integration: iCloud3 Device Tracker (documentation, issues)
First occurred: 10:02:26 (1 occurrences)
Last logged: 10:02:26
Failed to establish a new connection (Status Code -2)
Traceback (most recent call last):
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request
response = Session.request(self, method, url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest
return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func
check_loop(func, strict=strict)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in check_loop
raise RuntimeError(
RuntimeError: Blocking calls must be done in the executor or a separate thread; Use `await hass.async_add_executor_job()`; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/icloud3/config_flow.py", line 1252, in async_step_icloud_account
await self._log_into_icloud_account(user_input, self.step_id)
File "/config/custom_components/icloud3/config_flow.py", line 1385, in _log_into_icloud_account
self._build_device_form_selection_lists()
File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists
self._build_opt_famshr_devices_list()
File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list
devices_desc = start_ic3.get_famshr_devices(self.PyiCloud)
File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices
PyiCloud.FamilySharing.refresh_client()
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client
response = self.Session.post(self._fmip_refresh_url,
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request
self._raise_error(-2, "Failed to establish a new connection")
File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error
raise api_error
custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2)
I thought I had fixed that in beats 2. Guess not. Go to ICLOUD ACCOUNT and do a login. Then come back to ICLOUD3 DEVICES and see if you still get the error
———————— Gary Cobb On Dec 20, 2022 at 10:44 AM -0500, John @.***>, wrote:
Log Details (ERROR) This error originated from a custom integration. Logger: aiohttp.server Source: custom_components/icloud3/support/pyicloud_ic3.py:272 Integration: iCloud3 Device Tracker (documentation, issues) First occurred: 10:33:33 (2 occurrences) Last logged: 10:38:27
Error handling request Traceback (most recent call last): File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request response = Session.request(self, method, url, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request self.putrequest(method, url, *skips) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest return _HTTPConnection.putrequest(self, method, url, args, kwargs) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 168, in check_loop raise RuntimeError( RuntimeError: Blocking calls must be done in the executor or a separate thread; Use
await hass.async_add_executor_job()
; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, kwargs)During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/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 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 241, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper result = await method(view, request, data, *args, kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/icloud3/config_flow.py", line 567, in async_step_menu return await self.async_step_device_list() File "/config/custom_components/icloud3/config_flow.py", line 1534, in async_step_device_list self._build_device_form_selection_lists() File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists self._build_opt_famshr_devices_list() File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list devices_desc = start_ic3.get_famshr_devices(self.PyiCloud) File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices PyiCloud.FamilySharing.refresh_client() File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client response = self.Session.post(self._fmip_refresh_url, File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post return self.request("POST", url, data=data, json=json, kwargs) File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request self._raise_error(-2, "Failed to establish a new connection") File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error raise api_error custom_components.icloud3.support.pyicloudic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2) Logger: icloud3 Source: util/async.py:168 First occurred: 10:02:26 (3 occurrences) Last logged: 10:38:27
Blocking calls must be done in the executor or a separate thread; Use
await hass.async_add_executor_job()
; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, kwargs) Traceback (most recent call last): File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request response = Session.request(self, method, url, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request self.putrequest(method, url, skips) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest return HTTPConnection.putrequest(self, method, url, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/util/async.py", line 180, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 168, in check_loop raise RuntimeError( RuntimeError: Blocking calls must be done in the executor or a separate thread; Useawait hass.async_add_executor_job()
; at custom_components/icloud3/support/pyicloudic3.py, line 151: response = Session.request(self, method, url, **kwargs) Logger: homeassistant.util.async Source: util/async_.py:180 First occurred: 10:02:26 (3 occurrences) Last logged: 10:38:27Detected blocking call to putrequest inside the event loop. This is causing stability issues. Please report issue to the custom integration author for icloud3 doing blocking calls at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, **kwargs) This error originated from a custom integration.
Logger: icloud3 Source: custom_components/icloud3/support/pyicloud_ic3.py:272 Integration: iCloud3 Device Tracker (documentation, issues) First occurred: 10:02:26 (1 occurrences) Last logged: 10:02:26
Failed to establish a new connection (Status Code -2) Traceback (most recent call last): File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 151, in request response = Session.request(self, method, url, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.10/http/client.py", line 1293, in _send_request self.putrequest(method, url, *skips) File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 219, in putrequest return _HTTPConnection.putrequest(self, method, url, args, kwargs) File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in protected_loop_func checkloop(func, strict=strict) File "/usr/src/homeassistant/homeassistant/util/async.py", line 168, in check_loop raise RuntimeError( RuntimeError: Blocking calls must be done in the executor or a separate thread; Use
await hass.async_add_executor_job()
; at custom_components/icloud3/support/pyicloud_ic3.py, line 151: response = Session.request(self, method, url, kwargs)During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/config/custom_components/icloud3/config_flow.py", line 1252, in async_step_icloud_account await self._log_into_icloud_account(user_input, self.step_id) File "/config/custom_components/icloud3/config_flow.py", line 1385, in _log_into_icloud_account self._build_device_form_selection_lists() File "/config/custom_components/icloud3/config_flow.py", line 2057, in _build_device_form_selection_lists self._build_opt_famshr_devices_list() File "/config/custom_components/icloud3/config_flow.py", line 2071, in _build_opt_famshr_devices_list devices_desc = start_ic3.get_famshr_devices(self.PyiCloud) File "/config/custom_components/icloud3/support/start_ic3.py", line 1317, in get_famshr_devices PyiCloud.FamilySharing.refresh_client() File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 951, in refresh_client response = self.Session.post(self._fmip_refresh_url, File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 635, in post return self.request("POST", url, data=data, json=json, kwargs) File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 156, in request self._raise_error(-2, "Failed to establish a new connection") File "/config/custom_components/icloud3/support/pyicloud_ic3.py", line 272, in _raise_error raise api_error custom_components.icloud3.support.pyicloud_ic3.PyiCloudAPIResponseException: Failed to establish a new connection (Status Code -2) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: **@.***>
Weird, same result.
Successfully logged in
Unknown error
And I did do a forced browser cache clear just in case.
I think this is fixed in beta 3. I’ll close this issue when beta 3 is available.
@gcobb321 I ran into this all day today trying to get icloud3 v3 to work.
I noticed I had some “ghost device names” (_1 appended to the names) and I also noted that in the console view of my browser developer tools, it would throw an error 500. So it would say “unknown error” when saving and the developer tools throwing HTTP/1.1 500 errors.
I was able to work out that this was because of apparently ghost entries. I killed those entries, renamed my device_tracker entities. Restarted home assistant. Also renamed the devices in iCloud. Had to wait maybe 45 minutes but when everything automatically started populating in the drop down boxes. It wasn’t apparent this was the issue and it took a lot of brute forcing to result in a state that would let you save the devices in the configuration.
Moving thru the configuration, I logged into my account:
(Oddly, did not receive the prompt from Apple for the 2FA code)
Move on to the next item, iCLOUD 3 DEVICES
Click
Submit
and receive error