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
543 stars 54 forks source link

How to remove devices? #368

Open raptile opened 1 month ago

raptile commented 1 month ago

I see 6 device trackers but only two real ones when i say i want to update or remove them.

How do i remove all de the device trackers that i don't want to use?

The devices in the list are marked as "Used by iCloud3 device" but i do not see them when i use the "Configure" option to update or delete devices.

Thanks in advance!

gcobb321 commented 1 month ago
  1. Make sure the devices are not in the known_devices.yaml file.
  2. Make sure there is no platform: icloud3 entry in your configuration.yaml file.
  3. Go to Devices & Settings > entities. Click the pulldown icon at the top where you check all devices (2nd from the right). Check it to select everything. Click the 3-dots on the upper-left, Select Delete. You will see a message that only xx of xx devices can be deleted. Click Delete to delete the unused entities. Reboot HA.
raptile commented 1 month ago

Thats what i tried.

Here i have 3 devices. I want to remove two of them.

image

But when i search for the entities, i do not see them in the list:

image

I only see 1 and that's not an icloud3 device.

Any other idea on how to remove them?

When i try to delete it from the config option i do not see the ones i want to delete:

image
gcobb321 commented 1 month ago

Maybe use the Developer Tools on the hay sidebar and see if you can see them and use their attributes to see where they are coming from and who owns them. You could always make copies of the .storage/conf_device_registry and conf_entity _registry. Then open the files in an editor and look for them and then delete their entries. Do this only if you know what you are doing. You don’t want to make any mistakes and cause problems requiring a restore.

Or disable your integrations, reboot twice and try to delete them again.

gcobb321 commented 1 month ago

Also, What devices are listed when you go to the iCloud3 configure screen where it shows the devices and entire counts. You can click devices to filter by the iCloud3 integration and the same thing for entities.

raptile commented 1 month ago

I can see them in the developer tools:

image image

I dont understand what u mean with this: "Also, What devices are listed when you go to the iCloud3 configure screen where it shows the devices and entire counts. You can click devices to filter by the iCloud3 integration and the same thing for entities."

That's what i've printed above right?

They are only in the icloud 3 integration but it does not show them here:

image
raptile commented 1 month ago

And do u mean .storage/core.device_registry and .storage/core.entity_registry?

When i search for the names i see them in the core.device_registry and icloud3:

image

They both have the same tracker name as entity as far as i can tell: device_tracker_iphone_van_daniella

When i search for that, i see them in the core.device_registry, core.entity_registry and icloud3:

image
gcobb321 commented 1 month ago

Earlier I was referring to this screen and the device_trackers and entities.

image

This is really an HA device_tracker/entity registry issue and it is difficult to offer any more advice on how to remove them from HA. I would just go to the Devices & settings > Entities and see if they can be renamed, deleted or disabled.