hi,
One of the most frequently discussed topics here; “how to replace device”… but I still have questions before I do something wrong: i know how to replace a zigbee device How to replace mqtt (z2m) device correctly in HA without loosing history? - #3 by FrankRy , but in my actual case one of my Shelly plug devices is broken and should be replaced by a device from another brand (sonoff S60TPF)…
i want to preserve
- IP adress
- HistoryStats and LongTermStats
problems:
unfortunately i named my old device/entity name(s) brand specific…
…
button.shelly_plug_12_reboot
sensor.shelly_plug_12_power
sensor.shelly_plug_12_energy
sensor.shelly_plug_12_rssi
switch.shelly_plug_12
update.shelly_plug_12_firmware_update
i read many posts and collected some infos and my rough plan is doing like the following steps, pls confirm, comment, correct me… and i have some more questions (see after my how-to-steps) …
HOW-TO-STEPS:
- with HA-GUI: rename old broken device to “new-future” device name (only to “preserve” history and let follow history the new future names!) choose a “neutral device” names, like…
button.ip12_reboot
sensor.ip12_power
sensor.ip12_energy
sensor.ip12_rssi
switch.ip12
update.ip12_firmware_update
- with HA-GUI: delete old broken device from HA (but how to…?)
- with Device-webgui: set IP address (without HA) for new device to old IP Adress before pairing with HA…
- with HA-GUI: restart HA? (to let HA use same IP for new MAC adress as described here? Replacing a WIFI device (Shelly) - #3 by Bieniu)
- with HA-GUI: add new device in HA
- with HA-GUI: rename new device with “new-future” device name (and single entities too, if integration uses slightly diffent namings for that…)
- with HA-GUI: update automations/template sensors device/entity was used too…
questions:
- are my how-to-steps correct?
- but how to delete a (shelly) device anyway? can only find a delete option for entities?
hopefully no problems pairing a new device from another brand with same IP as old one? - do i have to preserve a right order for pairing new devices (could i add new device, before old was deleted when renaming afterwards the correct way?
- except propably used in automations and template sensors, what should be updated for new entity/device names too? dashboards?
- how to find all device/entities “relationships” in HA? tried to use StudioCodeServer integration to search for Device_ID or entitie-names, but it takes hours to search and find noting!?! i got more infos from “
DeviceInfo” page what lists automations, scripts, scenes and areas but not template sensors or “others”…
thank you in advance
br Frank
HA core 2025.7.4 on raspi4