Notify only after a trigger happen for the 2nd time

Hello,

I want to trigger a notification only after a temprature sensor reads a temprature above my threshold for the 2nd time, not the 1st.

At the first time it’ll notice that something is worng and watch it and on the 2nd time it’ll notify/alert or so something.

What should I read to find out how to do it? or if any of you have already done it if you could please share it will help a lot.

:thinking:

How will you know to notice and watch it the first time if it doesn’t send you a notification until the second time?

But to answer your question…

You could create an input_boolean and turn that on the first time the temp goes above the threshold. Then for the notification you could use the temp above threshold as a trigger and the input_boolean that was turned on the first time as a condition.

You can use the treshold binary sensor and the alert component for that.

Create a treshold sensor based on the temperature. Then create an alert for the treshold sensor.