gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
546 stars 54 forks source link

iCloud3 V3 no photo on device tracker #294

Closed sandernaus closed 10 months ago

sandernaus commented 10 months ago

For a device added through friends and family sharing, I've set a photo. However, this photo appears only for thesensor.<device>_badge and not for the device_tracker.<device>.

Where, for my device, the photo is set for both the sensor and the device_tracker. Is this a known bug?

For the device with the issue, I also see the following error in the logging. Not sure if that's related.

INTERNAL ERROR >; iCloud Update

File... > `/device_tracker.py`

• Line.. > 618, in write_ha_device_tracker_state(...)

• Code > self.async_write_ha_state()

• File... > `/usr/src/homeassistant/homeassistant/helpers/entity.py`

• Line.. > 720, in async_write_ha_state(...)

• Code > raise RuntimeError(f`Attribute hass is None for {self}`)

• Error. > RuntimeError: Attribute hass is None for <DeviceTracker: <DEVICE>/iphone>
gcobb321 commented 10 months ago
  1. iCloud3 version? The latest is rc8.
  2. Do you have other devices that show the picture on both the sensor badge and device tracker entities correctly?
  3. If # 2 is yes, what happens if you try changing the picture to the same one that shows correctly?
  4. Are there any other errors related to iCloud3? HASettings > System > Logs

    I would be interested in a log file. Do Event Log > Actions > Turn on Debug Logging Then Event Log > Actions > Restart iCloud3. Let it run until you get the error and send iCloud-0.log to geekstergary@gmail.com and I’ll see if I can see what is causing it. Somehow that Device May not be getting completely set up because ‘hass is None’ error

sandernaus commented 10 months ago

After reviewing my configuration again, I found some leftover files from the V2 version. This caused some old entities not to be cleaned up.

After cleaning everything, the pictures work as expected, and the errors disappeared in the logs.