Running automation when home - looking for day's values

I’m trying to write an automation using a motion trigger (my kitchen Tapo sensor), which will then determine if motion has been detected at a (Tapo) camera that day, with the resulting action being a text-to-speech notification on a google speaker.

I set the trigger as the camera motion detection, and then delayed the TTS action by waiting for a trigger (the kitchen sensor).

This feels wrong though, as that could mean the automation is running for hours, waiting for a trigger.

What is the proper way to do this please? Ideally the trigger will be the motion sensor, and it will then look for whether the camera has detected motion that day. How do I look for whether a specific entity has occured during a period of time?

TIA, sorry this is all still quite new for me.

Something like this: when the motion sensor goes on, check whether it has held its prior off state for less than e.g. 36000s (10 hours) before performing the action:

triggers:
  - trigger: state
    entity_id: binary_sensor.motion_sensor
    to: 'on'
conditions:
  - "{{ (now() - trigger.from_state.last_changed).total_seconds() < 36000 }}"
actions:
  - action: etc...