Help needed: HVAC move depending on humidity sensor

Hi. I made this blueprint based on a working automation, but I am getting error when I try to use it.

blueprint:
  name: Humidity Activated HVAC
  description: Turn an air condition on in dry mode based on the humidity level
  domain: automation
  input:
    humidity_state_sensor:
      name: "Humidity State Sensor"
      description: "Must output 3 values: low, medium or high."
      selector:
        entity:
          domain: sensor
    condition_binary_sensor:
      name: "Binary Sensor for Condition"
      description: "Binary sensor that decides if the automation should be activated."
      selector:
        entity:
          domain: binary_sensor
    target:
      name: "Air Conditioner"
      description: "Select a HVAC unit or a room."
      selector:
        target:
          device:
            integration: daikin

mode: single

trigger:
  - platform: state
    entity_id: !input humidity_state_sensor
    from: "medium"
    to: "high"

condition:
  - condition: state
    entity_id: !input condition_binary_sensor

action:
  - service: climate.set_hvac_mode
    data:
      hvac_mode: dry
    target: !input target
  - wait_for_trigger:
      - platform: state
        entity_id: !input humidity_state_sensor
        from: "medium"
        to: "low"
  - service: climate.set_hvac_mode
    data:
      hvac_mode: 'off'
    target: !input target

And the errors are:

Blueprint Humidity Activated HVAC generated invalid automation with inputs OrderedDict([('hvac', '6ed56c92d5ff970692a6a710ed032d8f'), ('condition_binary_sensor', 'binary_sensor.home_occupancy'), ('humidity_state_sensor', 'sensor.guest_room_humidity_state')]): required key not provided @ data['condition'][0]['state']. Got None
Blueprint Humidity Activated HVAC generated invalid automation with inputs OrderedDict([('humidity_state_sensor', 'sensor.guest_room_humidity_state'), ('condition_binary_sensor', 'binary_sensor.home_occupancy'), ('hvac', 'climate.guest_room')]): expected a dictionary for dictionary value @ data['action'][0]['target']. Got None required key not provided @ data['condition'][0]['state']. Got None
Blueprint Humidity Activated HVAC generated invalid automation with inputs OrderedDict([('humidity_state_sensor', 'sensor.guest_room_humidity_state'), ('condition_binary_sensor', 'binary_sensor.home_occupancy'), ('hvac', '6ed56c92d5ff970692a6a710ed032d8f')]): expected a dictionary for dictionary value @ data['action'][0]['target']. Got None required key not provided @ data['condition'][0]['state']. Got None
Blueprint Humidity Activated HVAC generated invalid automation with inputs OrderedDict([('hvac', '6ed56c92d5ff970692a6a710ed032d8f'), ('condition_binary_sensor', 'binary_sensor.home_occupancy'), ('humidity_state_sensor', 'sensor.guest_room_humidity_state')]): expected a dictionary for dictionary value @ data['action'][0]['target']. Got None required key not provided @ data['condition'][0]['state']. Got None
Blueprint Humidity Activated HVAC generated invalid automation with inputs OrderedDict([('target', OrderedDict([('device_id', '6ed56c92d5ff970692a6a710ed032d8f')])), ('condition_binary_sensor', 'binary_sensor.home_occupancy'), ('humidity_state_sensor', 'sensor.guest_room_humidity_state')]): required key not provided @ data['condition'][0]['state']. Got None

This code has solved the problem:

blueprint:
  name: Humidity Activated HVAC
  description: Turn an air condition on in dry mode based on the humidity level
  domain: automation
  input:
    humidity_state_sensor:
      name: "Humidity State Sensor"
      description: "Must output 3 values: low, medium or high."
      selector:
        entity:
          domain: sensor
    condition_binary_sensor:
      name: "Binary Sensor for Condition"
      description: "Binary sensor that decides if the automation should be activated."
      selector:
        entity:
          domain: binary_sensor
    target:
      name: "Air Conditioner"
      description: "Select a HVAC unit or a room."
      selector:
        target:
          entity:
            domain: climate


trigger:
  - platform: state
    entity_id: !input humidity_state_sensor
    from: medium
    to: high
condition:
  - condition: state
    entity_id: !input condition_binary_sensor
    state: 'off'
action:
  - service: climate.set_hvac_mode
    data:
      hvac_mode: dry
    target: !input target
  - wait_for_trigger:
    - platform: state
      entity_id: !input humidity_state_sensor
      from: medium
      to: low
  - service: climate.set_hvac_mode
    data:
      hvac_mode: 'off'
    target: !input target
mode: single