Doods confidence level

Hi
I have a doods config that looks like below, I am wanting to adjust the confidence level with an input number slider, can someone help with the syntax, it does not seem to work

  - platform: doods
    url: http://192.168.1.4:8081
    detector: default
    scan_interval: 5
    source:
      - entity_id: camera.gate
    file_out: /config/www/doods/doods.jpg
    confidence: 50
    labels:
      - name: person
        confidence: 50
      - name: car
        confidence: {{ states('input_number.doods_car') | int }}