Skip trace generation for a specific trigger

Is there any way to avoid generating a trace for a specific trigger in an automation?
Specifically, I have an automation that I’d like to add a 5 minute time pattern trigger to as backup, but this will make traces useless. Is there any way to prevent the trace from being generated for this trigger?
Or some clever workaround for my actual issue?

Thanks!

You can store more than the default 5 traces.
Troubleshooting automations - Home Assistant.

1 Like

Others may have more skills in this area, but I’m not a mind reader. Why do you think you need a 5-min backup trigger?

Either there are more than 5 triggers and they can no longer see the first ones or they don’t know how to look back are my guesses.

Thanks!

At a minimum of 20 traces/hour, I’d need about 200 traces to have a chance of finding the traces for failures. It will also make it very difficult to find the failed trace.

My apologies. “Actual issue” was a reference to generating a lot of traces. E.g., maybe there’s some clever way to set that up as a separate automation using the same configuration without having to maintain them separately (I have many of these types of automations, all technically generated from blueprints).
The 5 minute trigger is to cover state reporting issues outside the control of HA.

You could improve the original automation so that a “backup” 5 minute trigger is not needed or you could put the 5 minute trigger in a separate automation.

As an example, I have an automation that keeps a switch in sync with an input_boolean. It triggers on a state change of the switch, the input_boolean, and on HA startup. However, once in a while, the command to turn on/off the switch will fail silently (even with retry—hard to debug, since it doesn’t happen often). Running the automation every 5 minutes ensures that this problem or any other unforeseen edge case will be resolved within 5 minutes.

Quick & dirty solution would be to have the 5 minute trigger on its own in a duplicate automation.

That way the original automation doesn’t have it’s traces spammed 20 times an hour

Yeah, kinda hate to do that, because then I need to maintain both…
Thanks!

Set it to 200. It takes a little HD space that’s all to store the text, and the setting is per automation or script.

You could create a script to check conditions and execute the actions. Then call the script from both automations.

1 Like

Okay, I’m going to think about which path I want to take.
Thanks for all the options everyone!