-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AVM FRITZ!Box Tools does not delete the devices deleted from fritz interface #106642
Comments
Hey there @mammuth, @AaronDavidSchneider, @chemelli74, @mib1185, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) fritz documentation |
Hi @syntesys87 please enable debug logging, restart HA and provide the home-assistant.log after you have pressed the cleanup button logger:
default: info
logs:
homeassistant.components.fritz: debug Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub. |
You need to use the cleanup button to get rid of them on HA side |
I opened the issue because the cleanup button in my case is not working... |
which device you think should be removed but isn't? |
In home assistant I see 82 entities, I think that something in the sync it's not working... I'll remove de device and readd... |
are some of these entities in state unavailable ? |
Yes, it's plenty of devices no more connected... |
please provide the state details of one or two of these entities from "Developer Tools" -> "States" |
i have the same problem. |
I'm sorry, I removed the integration and readded because I needed an urgent resolution. @NordFreak could you please provide the detail requested from @mib1185? In the next days I'll add some device and remove, for check the clean. |
Sorry, the function is urgently needed, I have also integrated it again. For the moment, it works for me. |
I have the same problem. We have an appartment we rent via AirBnB and we have up to 5-6 guest a week. Every device is added via fritzbox tools. When removed from fritzbox they are still there and the entity and neither the devices cannot be deleted. So I end up with hunderts of entities in HA. |
@mib1185 after some days of reconfiguration, I tried to clean without success. For example, the device named "astroll" is no more present on the Fritz list, but is already on HA instance. |
@syntesys87 sorry for the late response - in your log i can see that the device "astroll" is still reported by the fritzbox, so there is (for this case) nothing we could do from HA side |
I have the same issue. In the past i was able to use fritz.cleanup service, but since last update, this service is not avaliable any more. Pressing the CleanUp button on Fritzbox device in the HA does nothing. Did someone solve the issue meanwhile? |
Same problem here |
Remove and readd the integration, I resolved doing that. |
I did this as well, but it solve it for now, but any further changes coming in, are not reflected again in HA. Seams the sync is not working. Would love to get back fritz.cleanup service, so i can trigger that by automation. |
you can even trigger the cleanup button via an automation (the former cleanup service did the same internally) |
Sorry for the question, but wheren can I find: fritz.cleanup service ? |
the cleanup service has been removed in 2024.6 (see backward-incompatible-changes), you can use the button entities instead |
I'm not sure, whether the button is doing the same as cleanup did before. As of my observation, the button triggers the Fritzbox "cleanup" button in network section which deletes all dynamic devices but keeps all the devices with individual configuration (e.G. fix IP or Internet Profile). This would be fine if by doing this, the HA Fritzbox Tools would although recognize, devices has been removed on the fritzbox, so i can delete it HA device list as well. But this does not. It's reported that fritzbox does not provide this entity or device any more, but stay's in HA. I would expect to have some kind of sync between Frithbox and HA. Although if i rename the device in Fritzbox, HA does not recognize this change and keep the old name. |
the former The only provided log files has been analysed in #106642 (comment) with result, it's not an HA issue |
Hi, I have the same problem. In Home Assistant, there are 76 devices at the moment. More, than in my Fritzbox. But they don't get removed, when pushing the cleanup-button. config_entry-fritz-36e957dba4f1d17e8fa254dfc5748d51.json |
Hello, I have the same problem. I just cleaned up my devices in my fritzbox and assigned them all static I addresses. There are only 36 known devices in the network overview in my fritzbox but 93 devices in the integration in HA. I used the button to clean up, pressed it several times, but only one devices was removed. Is there any other way to clean up? What happens with the device_tracker names if I remove and install the integration again? thx and cheers, |
Are you considering also the device from the extenders ? Did you restart the Fritz in the case it's stuck on a old data as reply ? |
I do not have any extenders. Tried again after restarting Fritzbox. No changes. Devices are still not removed from HA. (Edited the screenshot to remove my full name from it.) |
I have the same problem, but I have hundrets of devices, so not in the mood to remove every single one by hand. |
Hel
Hello, I do have extenders, but they are part of my mash network so network devices cannot be managed there. I removed all old devices from fritzbox leaving 37 devices. HA shows 93. Pfa my Core logs, there is no entry fritz to select on the logs. Hope this is right: |
@shelvis please provide screenshots from details of some of these devices which should not be present in HA anymore. if there are still some entities connected to these devices in HA, please provide the entity details from developer tools states tab |
Hi @mib1185 , I hope, this is what you requested |
@shelvis one further question - did you remove the device tracker entities only via the cleanup button/service or manually? |
I removed one or two devices completely before searching for an automated way to do it. But I did not remove entities without deleting the complete device. |
@shelvis the linked PR will fix this issue for new/future orphan devices, but not for already "empty" device entries. so you need to delete the orphan device entries by your own, as soon as this PR is merged and released. |
How can orphan devices be manually deleted? There is no delete button in my HA. This is how a orphan device looks like in my HA: |
The easiest way should be to remove and add the "AVM Fritz!Box Tools" integration again |
lol no! This way I have to re-do all the settings to track the device_tracker I want to track! That will be crazy! I have several devices registering into my guest wlan every week and I have an automation to clean the entities. I can't do it by hand! |
The problem
I deleted from Fritz!Box frontend all the devices no more connected to the network, but they remains on the integration in home assistant.
What version of Home Assistant Core has the issue?
core-2023.12.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
AVM FRITZ!Box Tools
Link to integration documentation on our website
No response
Diagnostics information
config_entry-fritz-1229851ffce9169e442b58ca46b7f907.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The log contains the devices that I have in the fritzbox; The clean button in the integration seems not doing the right operation.
Additional information
No response
The text was updated successfully, but these errors were encountered: