ENER-J Smart WiFi Touch Switch 2 Gang

change to light.toggle

Or use Light Switch Integration.

Getting this error message now - I will try the light switch link…

Failed config

light.gpio: [source /config/esphome/kitchenswitch1.yaml:51]
  
  Platform not found: 'light.gpio'.
  platform: gpio
  id: right_relay
  pin: 
    number: GPIO04
  name: Dinner Table
  icon: mdi:lightbulb
light.gpio: [source /config/esphome/kitchenswitch1.yaml:58]
  
  Platform not found: 'light.gpio'.
  platform: gpio
  id: left_relay
  pin: 
    number: GPIO13
  name: Island Lights
  icon: mdi:lightbulb``