Unknown Entity

My Automation isn’t working. The switch turns on fine but when my wife said the fountain isn’t turning on, I found this when I went into traces. Do I need to delete the automation and start over?

Hi,

You don’t need to delete the automation. Repair it. Right now, the turn on action can’t find the selected entity “Fountain Outside”.

I would stop using device_id, start using entity_id. Why and how to avoid device_ids in automations and scripts

I don’t know how that happened anyway

It works now.

action: switch.turn_on
metadata: {}
target:
entity_id: switch.fountain_outside
data: {}