My goofy $7 window sensors report closed after staying open for a few dozen minutes, and its making my heat turn on despite windows being open. I have decided to replace these sensors for this reason. Is there any way to swap them easily in HA? I don't want to have to manually fix a ton of automations. idc about history really.
#Is there an easy way to swap zigbee devices?
1 messages · Page 1 of 1 (latest)
@grizzled pebble if you used state triggers, then you just need to make the entity IDs of the new sensors match what the old ones were
If you used Device triggers, you'll need to edit the automations in YAML and replace the device and entity IDs in the YAML
I used device triggers. I wonder if i can just do a find and replace for this
From a computer, you can copy the text of the automations, YAML, etc into a text editor. The use "replace" to change the text identifying old devices/entities to the new ones. But do it carefully, one change at a time. Then you copy and paste the text again in HA and it's done. Remember, a text editor, not something like Office, because that kind of software uses some not visible characters that can break your text files if you use it 😉
And make a backup of all, outside your HA before touching anything 😉
I ended up just redoing the automations. It was only 2 automations i thought it was more