Issue Removing Matter (BETA) Devices and Entities

Hi everyone,

I’m having trouble removing Matter (BETA) devices and entities from my Home Assistant system. I’ve already taken the following steps:

  1. Added shell commands and automations to delete Matter entities.
  2. Tried to remove entities and devices directly via the API.
  3. Installed an SQLite Web Add-On and executed SQL queries to delete Matter entities and devices from the database.

Despite these efforts, the Matter entities and devices reappear after a restart.

Steps Taken and SQL Queries:

  • DELETE FROM states WHERE entity_id LIKE '%matter%';
  • DELETE FROM state_attributes WHERE shared_attrs LIKE '%matter%' OR shared_attrs LIKE '%_TZ3000_imaccztn%';

None of these queries have yielded the desired result. Does anyone have any suggestions or solutions for this issue?

Thanks in advance for your help!

Matter devices and entities are being provided by the matter fabric add-on/server, so any changes have to be coordinated there, otherwise they will just be added back.

Quick PSA — Manually DELETEing rows from the database is never recommended. This is a good way to corrupt your database, and your entire installation, unless you know exactly what you are doing.

The normal way to delete a device is to go to the device page under Settings / Devices / Matter (BETA) / X Devices. Click the 3-dot hamburger menu in the “Device Info” section, and click delete. Normally, that will send a message to the integration to remove the device.

If that doesn’t work, you can try the matter fabric web console directly on http://servername:5580. Click a node, then click the remove button.

If that doesn’t work, you can try using the interface that came with the device to remove it from the matter fabric, for example the Eve app. I know for Tasmota devices, you can remove them using their local web console.

If you want all your Matter devices gone forever, you can delete the Matter (BETA) integration and remove the add-on.

If you’ve tried all of these and the device still appears in HA?