I just renamed my esphome node, deleted its integration from HA, compiled and uploaded renamed node and integrated it from scratch.
I now face few issues:
I don’t have entity names I expected to see. For example, in esphome I have:
binary_sensor:
- platform: gpio
name: bathroom extractor fan state
but in integration its name is bathroom_extractor_fan_state_2.
Some entities are just weird:
- platform: wifi_signal
name: bathroom_extractor_fan_node WiFi signal level
became sensor.wifi_signal_level, only God knows why…
So basically currently there are 2 sets of entities in HA’s registry. I don’t want to change my yaml files so I’m hoping to manually remove all of them and then integrate my node again.
The integration shows a lot of icons, but if I click on the whole thing (not icons), there are fewer displayed - obviously a bug? If I click on individual icons, it shows me its state/history/etc.
Apparently something went wrong here.
The question is - what is the right way to rename nodes on the esphome side?
Open /config/.storage/core.entity_registry text file and delete all unnecessary entities
3a. (optional) Delete these entities from /config/home-assistant_v2.db (via sqlite)
To delete an ESPhome device, go through every file in /config/.storage that begins with core. and delete every reference to the old device. Then go to /config/esphome and delete every file that mentions the old device.
Then reflash the device with USB as if it were new.