What is the correct node for check a state change from off to on?

I am trying to move the following automation (took it from here) to NodeRED but I am struggling to find the correct way to represent the platform: state with a node that will check that it changes from off to on. Can I get some ideas?

    - alias: Backups went stale
      id: 'backups_went_stale'
      - platform: state
        entity_id: binary_sensor.backups_stale
        from: 'off'
        to: 'on'
      condition: []
      - service: notify.android
          title: Backups are Stale
          message: Please visit the 'Home Assistant Google Drive Backup ' add-on status page
            for details.

Thanks in advance


Perfect! exactly what I needed!