PID-Controller (Generic thermostat?) for humidifier?

Hello, I am trying to use humidifier to control humidity in my flat. So, i have switch for it and hum.sensor (xiaomi, with about 30min reaction?). I saw PID-controller for temperature(generic thermostat), is there any same component for humidity?

If I will use simple ‘if’ (if hum < 35% then turn on else turn off) - the humidity will not stabilised well.

This is an old post… but…

Generic thermostat component is not a pid controller. Only a thermostat with hysteresis.

bye

Thats why I am asking about it.
Maybe someone has PID-controller example for home-assistant?
still need it.

Should be simple enough to implement as a script