ESPHome controlled biltong curing chamber?

So I got the crazy idea to let ESPHome controll my curing chamber for biltong and other meats.

biltong_temp_hum
As you can see the temp should be controllable and also the humidity, to lower it I simply use a fan to suck in more of the outside indoor air and to heighten it just shut of the fan.
I guess the simplest method would be to do something like this for the fan?

switch:
  - platform: gpio
    pin: GPIO3
    name: "Curing chamber fan"
    id: chamber_fan_1
sensor:
  - platform: dht
    humidity:
      name: "Curing chamber Humidity"
      on_value_range:
        - above: 80
          then:
            - switch.turn_on: chamber_fan_1
        - below: 60
          then:
            - switch.turn_off: chamber_fan_1

But if we wanted it simple we wouldn’t be here trying to automate everything, right? :smiley:

Would it be possible for example to use the built in PID component but for humidity and a PWM controlled fan?

Oh and as a bonus teaser, I’ve bought a bunch of load cells to get instant readings of the weight loss :crazy_face:

The PID controller requires a climate component. You could possibly adapt a climate component to humidity.

Ah crap, guess I didn’t read the notes to well. I thought it simply was a separate PID component. I’ll just go for the example in the OT then! Thanks for clarifying it!

How did you go with this? I was looking at doing exactly the same thing a PID controlled fan based on humidity.

Just having a quick a play now using a humidty sensor in place of the temperature sensor on the climate PID control in ESPHome. Appears to be working fine the only caveat being it displays as temperature not humidty in home assistant. Easily rectified using template sensors though so no big deal aslong as its working. Hopefully in the next few weeks i will make a dehydrator and see if it works might be a bit of playing around with PID settings but at this stage its looking good.