Bed automation. How do I reset or cycle the occupancy sensor?

New to HA, but with the GUI, I can get what I need to accomplish. Here is my next project:

Issue: The wife gets out of the Sleep Number bed. She never turns off the integrated bed heater for her side.

Option #1: I saw a video where I could take an Amazon pressure pad and connect the wires to an Aqara Water sensor. Using it to detect when she gets out of bed for HA automation. I currently have many Aqara senors working with my HA. I have HA Green and SkyConnect for the integration of Aqara sensors.

Option #2: Sleep number has some integration with bed detection entities but I am very green writing script with entities. Nevertheless, they are inconsistent when I look at the logs and do not report correctly when she is in bed.

Here is my issue on how to write automation using the GUI (I’ve never used YAML before).

I do not know how to create an automation

  1. If option-1 triggers
  2. She gets out of bed
  3. Reset itself if she gets back in bed within 20 minutes

I am lost on delaying the heater not to turn off or reset if she returns. I cannot find a way to make the action-smart if she goes back/forth.

Could something like this work? What would that look like?

HA Automation- Sleep# Heater ON/OFF wife
Trigger: Aqara (modified pressure pad) has occupancy
Condition: Time 6-9a
Condition: delay 20min
Condition: Aqara sensor is clear
Action: Sleep# heater off wife’s side

You can’t use a condition to create a delay. Instead, you should use the “for” option with your state trigger. That will allow you to specify that the trigger should fire only when the desired state has been unchanged for some period of time (like 20 minutes).