Motions sensor - no motion for 2h how to archive?

Folks,
I just wonder how you could archive to create a trigger which will only got triggered when the motion sensor in the lr has detected no motion for more than 2 hours. Any idea?

I suppose you could do it like this:

- alias: '2 hours idle alert'
  trigger:
    platform: state
    entity_id: binary_sensor_motion_sensor
    from: 'on'
    to: 'off'
    for:
      hours: 2
  action:
    service: notify.whatever
      data:
        message: "No motion detected in the last 2 hours"