Controlling a 5050 Led strip with ESP8266 and PWM module

I’m trying to turn on/off a LED strip with an ESP12 (Wemos) and a MOSFET PWM Module to no avail.

This is the code on the Wemos D1 Mini

output:
  - platform: esp8266_pwm
    pin: D2
    id: pwm_output
    frequency: 1000 Hz
    
light:
  - platform: monochromatic
    output: pwm_output
    name: "ESP8266 Dimmer"
    

The PWM module is this one

I followed this tutorial on YT Dim Lights using ESPHome add on in Home Assistant - YouTube