General Switch button

Hello,
I’m new to Hassio, and I’m trying to create two switches but extra switch is showing here which control other switches.
esphome

switch:
  - platform: gpio
    pin: 2
    id: relay
  - platform: gpio
    pin: 3
    id: relay3  
  - platform: template
    name: "Gate Remote"
    id: relay2
    optimistic: true
    turn_on_action:
      - switch.turn_on: relay
  - platform: template
    name: "Gate Remote2"
    id: relay4
    optimistic: true
    turn_off_action:
    - switch.turn_off: relay
  
binary_sensor:
  - platform: gpio
    name: "Living Room Window"
    pin:
      number: 2
      mode: OUTPUT

That’s the configuration of your lovelace card. You can turn that off if you take control, but not if you want to leave the UI in automatic mode.