Simple analog switch doesnt work

I’m trying to switch a 12V lock, using an MT3608 booster.

I’m using a Seeed XIAO esp32c3, with just 2 wires connected: ground and GPIO3(D1).
My code:

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

switch:
  - platform: gpio
    name: "test5" 
    pin:
      number: GPIO3
      mode:
        output: true
        pullup: true

this doesn’t work, for some reason.
What am I doing wrong?

I am not aware pull-up exists or is necessary for output. I believe you also may need to use invert depending on state of your other equipment.

SOLVED

this was really stupid. I expexted 5V but the boards output is 3.3V, so the switch doesnt work :joy: