Set Webcam Resolution using Select

Is it possible to dynamically change the resolution (and other settings) using a select or slider.

I dont see anything in the webcam documentation that suggests you can:

select:
  - platform: template
    name: "Template select"
    optimistic: true
    options:
      - VGA
      - SVGA
      - XGA
      - SXGA
      - UXGA
    initial_option: VGA

    on_value:
      then:
        - logger.log:
            format: "Chosen option: %s (index %d)"
            args: ["x.c_str()", "i"]
         ### set Resolution Here
1 Like