Setup failed for Custom Component (Integration not found) Moonraker

Hi, I’m still new to this and this is my first try to write a config file for HA.

I’m trying to add my 3d printer (Klipper/Moonraker). I used the original config file from their repo and changed it to fit my setup.

I’m getting this error:

Setup failed for printer: Integration not found.

This is my config file:

sensor:
  - platform: rest
    name: Ender3V2_sensor
    resource: "http://192.168.8.8:7125/printer/objects/query?heater_bed&extruder&print_stats&toolhead&display_status&virtual_sdcard"
    json_attributes_path: "$.result.status"
    json_attributes:
      - heater_bed
      - extruder
      - print_stats
      - toolhead
      - display_status
      - virtual_sdcard
    value_template: >-
      {{ 'OK' if ('result' in value_json) else None }}    
      
  - platform: template
    sensors:

      ender3v2_hotend_target:
        friendly_name: 'Ender3V2 Hotend Target'
        device_class: temperature
        unit_of_measurement: '°C'
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['extruder']['target'] | float | round(1) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}
        
      ender3v2_hotend_actual:
        device_class: temperature
        unit_of_measurement: '°C'
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['extruder']['temperature'] | float | round(1) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_bed_target:
        device_class: temperature
        unit_of_measurement: '°C'
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['heater_bed']['target'] | float | round(1) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_bed_actual:
        device_class: temperature
        unit_of_measurement: '°C'
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['heater_bed']['temperature'] | float | round(1) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_state:
        icon_template: mdi:printer-3d
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['print_stats']['state'] if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_current_print:
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['print_stats']['filename'] if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_current_progress:
        unit_of_measurement: '%'
        icon_template: mdi:file-percent
        value_template: >-
          {{ (states.sensor.Ender3V2_sensor.attributes['display_status']['progress'] * 100) | round(1) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_print_time:
        icon_template: mdi:clock-start
        value_template: >-
          {{ states.sensor.Ender3V2_sensor.attributes['print_stats']['print_duration'] | timestamp_custom("%H:%M:%S", 0) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_time_remaining:
        icon_template: mdi:clock-end
        value_template: >-
          {{ (((states.sensor.Ender3V2_sensor.attributes['print_stats']['print_duration'] / states.sensor.Ender3V2_sensor.attributes['display_status']['progress'] - states.sensor.Ender3V2_sensor.attributes['print_stats']['print_duration']) if states.sensor.Ender3V2_sensor.attributes['display_status']['progress'] > 0 else 0) | timestamp_custom('%H:%M:%S', 0)) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_eta:
        icon_template: mdi:clock-outline
        value_template: >-
          {{ (as_timestamp(now()) + 2 * 60 * 60 + ((states.sensor.Ender3V2_sensor.attributes['print_stats']['print_duration'] / states.sensor.Ender3V2_sensor.attributes['display_status']['progress'] - states.sensor.Ender3V2_sensor.attributes['print_stats']['print_duration']) if states.sensor.Ender3V2_sensor.attributes['display_status']['progress'] > 0 else 0)) | timestamp_custom("%H:%M:%S", 0) if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_nozzletemp:
        icon_template: mdi:thermometer
        value_template: >-
          {{ [(states.sensor.Ender3V2_sensor.attributes['extruder']['temperature'] | float | round(1) | string), " / ", (states.sensor.Ender3V2_sensor.attributes['extruder']['target'] | float | round(1) | string)] | join if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

      ender3v2_bedtemp:
        icon_template: mdi:thermometer
        value_template: >-
          {{ [(states.sensor.Ender3V2_sensor.attributes['heater_bed']['temperature'] | float | round(1) | string), " / ", (states.sensor.Ender3V2_sensor.attributes['heater_bed']['target'] | float | round(1) | string)] | join if is_state('sensor.Ender3V2_sensor', 'OK') else None }}

#  MJPEG camera can be exposed to HA
#
camera:
  - platform: mjpeg
    name: Ender3V2_camera
    still_image_url: http://192.168.8.8/webcam/?action=snapshot
    mjpeg_url: http://192.168.8.8/webcam/?action=stream

any help would be appreciated