zBernie
(Bernie)
October 12, 2025, 11:01pm
1
If I have a device and an automation that is using that device as a trigger, then the device is factory reset and no longer exists in HA. What of happens to the automation? Could I reuse it with another devices?
I currently have about 100 devices imported into HA using the Hubitat Integration. I’m in the process of duplicating Hubitat automations for these devices. At some point I will be ready to buy Zigbee and Z-Wave controllers, and delete these devices and add them to HA directly. I’m concerned about the automations referencing these devices.
-Thanks
1 Like
Yes, but you’ll have to go into the Automations and redefine the new device and trigger field for each Automation.
tom_l
October 12, 2025, 11:15pm
3
It depends. Did you use entity ids or did you use device ids in your automation?
If you used entity ids it will be a simple matter to update these.
If you used device ids…
Background
When you start writing automations, a device trigger seems the obvious choice. Everybody knows what a device is and it comes at the top of the UI dropdown list.
[image]
It works… but it is certainly not a “great way to start” because it is storing up problems for the future. Far better to use an entity, with state or numeric_state.
This topic is part of the community-driven cookbook where you can find other topics you might be interested in or might like to contribute to.
Devi…
zBernie
(Bernie)
October 12, 2025, 11:15pm
4
Great! I just wanted to confirm that it was “reusable” in this situation.
tom_l
October 12, 2025, 11:16pm
5
So they’ve solved the issue of device automations disappearing when the devices are removed?
zBernie
(Bernie)
October 12, 2025, 11:17pm
6
Yes, I learned early on to use entities. But I was not thinking ahead to removing the Hubitat provided devices and adding the actual device.
Maybe I’m wrong, but my haven’t automations haven’t disappeared. They just throw Automation errors.
tom_l
October 12, 2025, 11:18pm
8
Yeah but are you using devices or entities?
tom_l
October 12, 2025, 11:19pm
9
Nice. It should be a simple matter to update your automations to use the new entities then.
zBernie
(Bernie)
October 12, 2025, 11:22pm
10
Sigh of relief.
I have about 40 Hubitat automations I’m replicating in HA, about 1/3 of the way through. Having fun doing it!
-Thanks
tom_l
October 12, 2025, 11:30pm
12
The issue only happens (happened?) with device automations. Lose the device and your automation is (was) just gone. May have been fixed. Not sure.
Red was an entity trigger
Green was a Device trigger
1 Like
If a Device was used, then deleted, an Automation is Disabled message appears even if the new Device is available in HA.
I have found restarting HA clears that error and the Automation is good to go.