When my automation is triggered (by a button entity), I get this in my logs:
2025-01-17 08:57:48.275 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities input_boolean.prohibit_large_loads are missing or not currently available
If I use the search feature on my dashboard I can see the input_boolean.prohibit_large_loads entity just fine.
If that’s a real automation, you also need a trigger. If you are doing something that does not need a trigger, that is a script which has a GUI editor as well.
Trying to build an automation without a trigger will make you sad.
Related question:
my script has a delay in it, and I want subsequent triggering of the script to restart the delay, so in my automation I had mode: restart… How would I handle that in a script?