PROBLEM: Light bulbs burn out. Switches and sensors break. I buy a new cell phone every few years!
SOLUTION: I want a wizard to replace an existing sensor with another one. The wizard needs to update / edit the exiting automations. It should replace the old device references / usage inside automations with the new device.
E.G. I have a rule turning a light bulb on 1/2 hour before sun-set. The light bulb dies. I buy a replacement. I want a way to replace / swap / exchange at the device level. This should;
New wizard asks to backup the system.
New wizard shows you a list of all automations it will update. It asks — Should I continue replacing old device name with new device name? [Y/N]
Put the new device into the same room as the old device
Update all existing automations to use the new device
Remove the old device from automation.
Move the old device to “unassigned” room.
Bonus Points: HA asks the admin — Should Home Assistant delete device? [Y/N]
Bonus Points: Rename new device name to the old device name
Sounds as if you’re using device ids in automations - could I ask why? Genuine question - a lot of people do and I must be missing something because I just don’t see the advantage (except maybe for physical buttons).
Honestly been using HA for 3 weeks. Don’t know if there is any alternative… My guess is lack of knowledge. What is your suggestion for device ID alternatives?
You are right. I am using entity_id: sensor.airvisual_pro_619s_carbon_dioxide it was something like sensor.airvisual_pro_mainflo_carbon_dioxide. Again, I would like a global search and replace for the old / new device
When adding a new device it would be cool to override the old device and or have the option to delete the old ones from your devices and entities. For example, I get a new phone but I cant just integrate it directly to my automations unless I delete or rename my old phones entities first. Another example would be if you change our your light switches from different brands you have to currently modify entity names and or automations
I used this in Hubitat so often when needing to switch devices out. Surely it couldn’t be that hard. A find and replace script? If I knew programming I would love to tackle this… but I don’t
I’m evaluating home assistant since a day, trying to move out of jeedom. That feature is really flagged as MUST HAVE in my list.
I’m surprised it’s not there day 1. Does it really need a vote?
I have more 15 years of experience and yeah devices die . So I used a lot that feature from jeedom. Pick device Y, says this replace device X and all scripts/automations related to X are updated automatically from X to Y. No question.
Optionally you can ask to copy history from X to Y as an additional step.
Extremely convenient
Will wait for that feature before switching.
BTW home assistant seems brilliant. Great work!