If device is removed what happens to it's automation(s)?

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.

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…

Great! I just wanted to confirm that it was “reusable” in this situation.

So they’ve solved the issue of device automations disappearing when the devices are removed?

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.

Yeah but are you using devices or entities?

Nice. It should be a simple matter to update your automations to use the new entities then.

Sigh of relief. :slight_smile:

I have about 40 Hubitat automations I’m replicating in HA, about 1/3 of the way through. Having fun doing it!

-Thanks

I use entities

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.