Simple automation from YAML to Node-Red

Hi, here is a little yaml automation. I hope that someone can translate it in Node-Red to best understand how it works.
The automation notify once a day via Telegram if the tablet battery is below a minimal value.
Furthermore, the automation work only if is set to ‘on’ the flag “enabled-notification”.
In Home Assistant I have defined the follow input:

  • input_number.minlevelbattery
  • last_notify
  • enabled_notification
- alias: "Low tabet battery"      
    platform: template
    value_template: '{{ states.sensor.battery_tablet.state | float < (states.input_number.minlevelbattery.state | float) }}'

    - condition: template
      value_template: "{{ states.input_datetime.last_notify.state != }}"

    - condition: numeric_state
      entity_id: sensor.battery_tablet
      above: 10

    - condition: state
      entity_id: input_boolean.enabled_notification
      state: 'on' 

    - service: input_datetime.set_datetime
      entity_id: input_datetime.last_notify
        date: "{{ | timestamp_custom('%Y-%m-%d') }}"

    - service: notify.telegram
        message: "Tablet battery low: {{ states.sensor.battery_tablet.state }} %"

Have you tried to do this in node red? What did you come up with so far? So we know where to help you