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:
dallas:
- pin: GPIO4
sensor:
- 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 ?
/Joern