Monochromatic not linear on Wemos D1 R1

Hi,
I have a Wemos D1 R1 and I need to control Atrea recuperation using analog write (PWM). I installed EPSHome, used monochromatic integration on pin D5. Unfortunately, it doesn’t work correctly for me. The controller does not behave linearly. When setting 40% in HA, 10% is set on the fan, between 40-50% the fan increases the speed to 20%, 60-70% is the fan to 60% and it keeps growing.
I tried to change the frequency and set the gamma to 1.0, but everything is the same.
Some idea? Alternatively, could the slider be adjusted somewhere in the settings to actually send 40% at 0%?

output:
  - platform: esp8266_pwm
    id: output_component1
    pin: D5
light:
  - platform: monochromatic
    name: "Rekuperace"
    output: output_component1
    gamma_correct: 1

Thank you
Ivica

i bought a pcf8591 sensor to convert to an analog dimming signal that has an AIN of 0-10. Do you have any reasonable solution with this sensor via I2C and ESPhome?

Thank you
Ivica