Humidity component

Hi, there is not an homeassistant component like “Generic Thermostat” (https://www.home-assistant.io/components/climate.generic_thermostat/)
but for humidity?

I would like to read humidity (from tasmota mqtt dht22), setting up a treshold and when the humidity value goes below the setpoint it triggers the mqtt relay…

Can this not be solved with a simple automation?

Or am I missing what you are looking for?

Substitute your humidity sensor in the trigger of this and your relay in the action:

- id: lounge_run_dehumidifier
  alias: 'Lounge Room Run Dehumidifier'
  trigger:
    platform: numeric_state
    entity_id: sensor.lounge_room_condensation_chance
    above: 70
    for:
      minutes: 20
  condition:
  - condition: state
    entity_id: switch.lounge_dehumidifier
    state: 'off'
  action:
  - service: switch.turn_on
    entity_id: switch.lounge_dehumidifier
  - service: notify.ios_iphone
    data:
      message: Lounge room condensing humidity alert. Dehumidifier started.
      data:
        push:
          sound: "DehumidifierActivated.wav"

Thank you @tom_l but it is nearly I was looking for.
@silvrr I would like to have something editable via UI and with HomeKit plugin.

Thank you for your answers!
Ale from Italy