Tasmota Dimmer - brightness topics not recognized by switch.mqtt

I’m trying to setup a Tasmota dimmer manually in my switches.yaml file. All of my regular switches are working fine, but I’m getting an error when I try to setup a dimmer.

My switches.yaml code is below. I’m getting an error stating that the brightness_command_topic is an invalid option, in fact it doesn’t like any of the brightness commands. When I check the switch.mqtt instructions, there is no specific brightness topics (I got this code from digiblur). Can someone help me with the right way to setup a dimmer?

Error:
Invalid config for [switch.mqtt]: [brightness_command_topic] is an invalid option for [switch.mqtt]. Check: switch.mqtt->brightness_command_topic.

Switches.yaml code:

  - platform: mqtt
    name: "Office Sconces"
    state_topic: "stat/tasmota140/RESULT"
    value_template: "{{ value_json.POWER }}"
    command_topic: "cmnd/tasmota140/POWER"
    availability_topic: "tele/tasmota140/LWT"
    brightness_command_topic: "cmnd/tasmota140/Dimmer"
    brightness_state_topic: "stat/tasmota140/RESULT"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{ value_json.Dimmer }}"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"

Brightness is invalid for switches. This code needs to go in lights.yaml

Well that was an hour of troubleshooting I’ll never get back:) Should have asked sooner, thanks!