IMAP Sensor - Only process emails from last minute

What is the format of the value template for an IMAP sensor to only process emails from the last 30 seconds?

I am using an IMAP sensor to process emails from my Hive Cameras.
An IMAP sensor processes the emails and sets a sensor to “lounge_camera_person”, “landing_camera_sound” etc.
Boolean sensors then set for each camera and type based on this sensor.

The sensors never reset as there is always a “most recent email” that locks the sensor on.

If it only processed emails from the last 30 seconds, then presumably the sensor would go blank if there were no new emails.

Thanks in advance for your help.


1 Like

Hi. Did you manage to solve this? I am trying to do something similar