Customize switch on rpi_gpio

Hi, I’m using HA on raspberry.
I create switch on gpio, and I want to customize it, but it seems to be not possible …

I add the several following lines :slight_smile:

customize:
	switch.door:
		icon: mdi:door
	switch.ir_camera_right:
		icon: mdi:alarm-light-outline
	switch.ir_camera_left:
		icon: mdi:alarm-light
		
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Configure camera
camera:
  - platform: ffmpeg
    name: cam
    input: udp://0.0.0.0:8554

# Configure GPIO
switch:
  - platform: rpi_gpio
    ports:
      10: Door
      11: IR Camera Left
      12: IR Camera Right

But in HA, I have this message :

Logger: homeassistant.setup
Source: setup.py:153
First occurred: 16:31:21 (1 occurrences)
Last logged: 16:31:21

Setup failed for customize: Integration not found.

What is the problem ?

Customize goes under homeassistant: See the example here: https://www.home-assistant.io/docs/configuration/customizing-devices/#manual-customization

I already followed it.
I also tried to add “homeassistant:” at begining of file, but same error …

Like this:

homeassistant: 
  customize:
    switch.door:
      icon: mdi:door
    switch.ir_camera_right:
      icon: mdi:alarm-light-outline
    switch.ir_camera_left:
      icon: mdi:alarm-light

I also noticed that you are using tabs instead of spaces. Don’t. Tabs are not allowed. Only use spaces.