OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
https://openepaperlink.de
Apache License 2.0
159 stars 35 forks source link

Delete device and entities for tags removed from the AP #125

Open TheQue42 opened 8 months ago

TheQue42 commented 8 months ago

Describe the bug When I delete a tag in the AP, its entities seem to be left forever, and I cant even delete the entities themselves, one by one.

To Reproduce Delete a tag from the AP, and wait until all entities become unavailable.

Expected behaviour Preferably that the entire device would be deleted automatically, but manual deletion possibilities at least. Either in the same way that you can delete on old MQTT entity that is lying around, at worst case by least by manually deleting all entities, (if that deletes the device, but I dont actually think it does.)

I know I can manually shut down HA and start fiddling with the files in .storage/core.*, but that seems like an error workaround, and not preferable w.o.w.

Screenshots Enable something like this, if possible? bild

Additional context On a side note, is there any reason why the entities such as open_epaper_link.00001834520cdadc, that must be used in drawcustom, are not part of the device they actually refer to?

user45876 commented 5 months ago

May I ask, if there is a way to delete it nevertheless? I think, the integration needs to provide an unique id to the tags and entities to enable that?