Make an automation run if a different automation has ran within the last x minutes?

I have an automation that reads the temperature in my car and then sets the climate control based on that temperature. I want to include a function that basically says “if I open my front door (which has a contact sensor on it) within 10 minutes of the climate automation running, unlock my car’s doors.”

Is this possible?

Sure, just add input helpers which store the information when those actions take place in automations, and then when the subsequent automations take place then In those automations check those input helpers to see what values they have and act accordingly.

Nailed it. Thanks so much. Just set it up, tested, and it worked perfectly.

state_attr('automation.xxx', 'last_triggered')
1 Like