Automation to node red flow

Can anybody tell me how to convert this automation to node red flow

- id: washer_notification
  initial_state: true
  alias: Washer Notification
  - platform: state
    entity_id: sensor.washer_status
    from: running
    to: complete
      hours: 0
      minutes: 5
      seconds: 0
  - service: script.notify_all
      message: ' The washing machine has completed its cycle' 

One way would be to use an “events: state” node to trigger the flow when the entity state is “complete” for 5 minutes. Then tick all of the checkboxes at the bottom to ignore unavailable etc. And if you want to ignore other states that can transition to complete (eg. maybe idle->complete is possible and should be ignored), just include a “switch” node that checks “” is “running”.

Thanks Michael I have the events state working but I am having a bit of trouble working out how to get the switch node to check the state.old. I will persevere