Need help configuring my esp32 as IR remote for my ledstrip

Hey all, i cant seem to get my yaml script for controlling my ledstrip to work. i want to have around 20 ish buttons to control all the colors of my ledstrip but it gives me this error:


could someone help me?
here is the full code:

esphome:
  name: ledstrip-controller
  friendly_name: ledstrip_controller


esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable Home Assistant API
api:
  encryption:
    key: "kPBZgEl8RCntx+KFC7Vd/1Tsx5opsPKr89wyRsiiJp4="

ota:
  password: "17035faa032c528e62569675e472a0db"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.2.24
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.2.254
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.254.0


  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Ledstrip-Controller"
    password: "lvUztD6Xbg7k"

remote_transmitter:
  pin: 4
  carrier_duty_percent: 50%


button:
  - platform: gpio
    name: ledstrip_power
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xBF40
          command_repeats: 1
  - platform: gpio
    name: brightness_up
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xA35C
          command_repeats: 1
  - platform: gpio
    name: brightness_down
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xA25D
          command_repeats: 1
  - platform: gpio
    name: color_red
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xA758
          command_repeats: 1

  - platform: gpio
    name: color_green
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xA659
          command_repeats: 1

  - platform: gpio
    name: color_blue
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xBA45
          command_repeats: 1

  - platform: gpio
    name: color_orange
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xAB54
          command_repeats: 1

  - platform: gpio
    name: color_dark_orange
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xAF50
          command_repeats: 1

  - platform: gpio
    name: color_lime
    on_press:     
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE31C
          command_repeats: 1

  - platform: gpio
    name: color_light_lime
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE718
          command_repeats: 1

  - platform: gpio
    name: color_light_green
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xAA55
          command_repeats: 1

  - platform: gpio
    name: color_light_blue
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xAE51
          command_repeats: 1

  - platform: gpio
    name: color_cyan
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE21D
          command_repeats: 1

  - platform: gpio
    name: color_dark_light_blue
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE619
          command_repeats: 1

  - platform: gpio
    name: color_darker_light_blue
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xB649
          command_repeats: 1

  - platform: gpio
    name: color_ultra_violet
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xB24D
          command_repeats: 1

  - platform: gpio         
    name: color_pink
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE11E
          command_repeats: 1

  - platform: gpio
    name: color_purple
    on_press:
      - remote_transmitter.transmit_nec:
          address: 0xFF00
          command: 0xE51A
          command_repeats: 1

Use template as the platform.