Convert ha automation to node red

how do i convert this to Node Red?

  • id: disco
    alias: Disco
    trigger:
    • entity_id: sensor.xkontakt1
      platform: state
      condition:
    • condition: state
      entity_id: sensor.xkontakt1
      state: double
      action:
      service: light.turn_on
      entity_id: light.mqtt_json_light_4
      data_template:
      hs_color:
      - “{{ (30 + (state_attr(‘light.mqtt_json_light_4’, ‘hs_color’)[0] or 0)) % 360 }}”
      - 100
      brightness_pct: 100
      transition: 1

this is the part i cant figure out:

action:
service: light.turn_on
entity_id: light.mqtt_json_light_4
data_template:
hs_color:
- “{{ (30 + (state_attr(‘light.mqtt_json_light_4’, ‘hs_color’)[0] or 0)) % 360 }}”
- 100
brightness_pct: 100
transition: 1

how do i convert it into json? so i can use it in a node?