Automation if condition is present for time x

Hey there,

is it somehow possible to create an automation that is triggered if an input(f.e. Temperature) is above a certain temperature for a period of time?

Otherwise i think i´m gonna create a slider that would pass the temperature to the microcontroller, which then does the time based triggering, but it would be easier if it was possible that way.

Thanks in advance

Do you mean something like this

Kind of , but it turns it on directly if the temp is greater than 30. I want to measure over a time of like 30 minutes and if the value is over 30 after 30 minutes then trigger.

You can change it to something like this

Then it triggers after 30 minutes without checking if the value is still above 30. There should be a way of checking again before action.

In this case you should use coding instead.