Force binary_sensor to retrigger

I have a binary_sensor relating to a beam being broken

The state change of the binary sensor triggers an automation

If the beam is obstructed, I obviously don’t get another state change

I want the the automation to be retriggered after a given period

I can see how to do this with timers but wondered if there is a neater way to do this using a templated binary sensor with auto_off

Problem is how to retrigger that templated binary_sensor given that the beam sensor state remains on?

Thanks

If you just want one or two additional triggerings you can duplicate the original trigger and assign each a duration:

triggers:
  - alias: Beam obstructed momentarily
    trigger: state
    entity_id: binary_sensor.beam
    from: 'off'
    to: 'on'
  - alias: Beam continuously obstructed for 5 minutes
    trigger: state
    entity_id: binary_sensor.beam
    from: 'off'
    to: 'on'
    for: "00:05:00"

If you want a bunch of notifications you can use a timer, a Repeat action, or use the Alert integration.

Many thanks