Correct "wait until finished" syntax (e. g. 'wait_for_trigger')

wait_for_trigger:
  - platform: state
    entity_id: sensor.samba_backup
    to: IDLE

and send a notification afterwards.