Remove ESP sensor from HA

HI Community

How to ‘‘reset’ sensors in ESP/HA ?

I have sensors - here it is a DS18B20 that has been used in another setup, but when I use it in a new, the ‘old’ name/Entity shows up in HA - even though it has a new name in ESP.

How do I get rid of the old ‘configuration’ that is somewhere stored in the setup. I have deleted it from the ESPhome interface.

Bit more details:

New configuration:

  - pin: GPIO4
  - platform: dallas
    address: 0x3100000484E07F28
    name: "kitchen_temperatura" 
  - platform: dallas
    address: 0x6E01192798E90D28
    name: "fridge_temperature"

From the ESP log:

[13:47:41][D][dallas.sensor:079]:   Found sensors:
[13:47:41][D][dallas.sensor:082]:     0x6E01192798E90D28
[13:47:41][D][dallas.sensor:082]:     0x3100000484E07F28
[13:47:41][C][dallas.sensor:087]:   Device 'kitchen_temperatura'
[13:47:41][C][dallas.sensor:087]:     Unit of Measurement: '°C'
[13:47:41][C][dallas.sensor:087]:     Accuracy Decimals: 1
[13:47:41][C][dallas.sensor:087]:     Icon: 'mdi:thermometer'
[13:47:41][C][dallas.sensor:095]:     Address: 0x3100000484E07F28
[13:47:41][C][dallas.sensor:096]:     Resolution: 12
[13:47:41][C][dallas.sensor:087]:   Device 'fridge_temperature'
[13:47:41][C][dallas.sensor:087]:     Unit of Measurement: '°C'
[13:47:41][C][dallas.sensor:087]:     Accuracy Decimals: 1
[13:47:41][C][dallas.sensor:087]:     Icon: 'mdi:thermometer'
[13:47:41][C][dallas.sensor:095]:     Address: 0x6E01192798E90D28
[13:47:41][C][dallas.sensor:096]:     Resolution: 12

[13:48:34][D][dallas.sensor:153]: 'kitchen_temperatura': Got Temperature=21.5°C
[13:48:34][D][sensor:092]: 'kitchen_temperatura': Sending state 21.50000 °C with 1 decimals of accuracy
[13:48:34][D][dallas.sensor:153]: 'fridge_temperature': Got Temperature=21.2°C
[13:48:34][D][sensor:092]: 'fridge_temperature': Sending state 21.25000 °C with 1 decimals of accuracy

So it works - and the ‘kitchen_temperature’ is working.

In HA:
Looking at the ESPhome integration. Is has then new one. It has two entities
Fridge_temperature (with a temperature value)
Esp_temp2_temperature (which has status - unavailable)

Looking developer tools for esp_temp2_temperature gives a result, but says it is unavailable.

So, my guess is, that somehow HA can recognize the sensor 0x3100000484E07F28 with the old entity. How to I get rid of this ?


Please try this. Go to configuration>integrations . Then under Esphome integration select the device which have this problem and then delete it. Restart home assistant and then re add the device in esphome integration.


Removed the ESP device in the integrations page.
Restarted HA.
Added the device again.

Same situation.


did you remove the old device or new one? you have to delete the old device that used to have the sensor with the same name and re-add it.

The old ESP device ‘Temp2’ has been removed a long time ago. Several cycles and HA updates since.

I have just removed and added the new one.


If this doesnot remove the entity, you can try deleting it from the entity registry. This can found in config/.storage/core.entity_registry