RGB Bulb Brightness Control via MQTT

I’ve recently upgraded my incandescent bulbs to RGBCCT bulbs, all flashed via Tuya Convert to Tasmota and integrated with MQTT. I’m facing an issue where the MJ dimmer switch doesn’t control the brightness of the bulbs when using the physical buttons, though the slider in Home Assistant works perfectly. The slider moves, but the bulbs don’t respond. I’ve reviewed my MQTT configurations and suspect the error lies there. Here’s the code from my lights.yaml file:

yaml

Family Room

  • platform: mqtt
    name: “Fireplace”
    state_topic: “stat/fireplace/POWER”
    command_topic: “cmnd/fireplace/POWER”
    availability_topic: “tele/fireplace/LWT”
    brightness_state_topic: “stat/fireplace/RESULT”
    brightness_command_topic: “cmnd/fireplace/Dimmer”
    brightness_scale: 100
    brightness_value_template: “{{ value_json.Dimmer }}”
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”
    payload_available: “Online”
    payload_not_available: “Offline”
    retain: false

  • platform: mqtt
    name: “FireplaceRGB1”
    command_topic: “cmnd/fireplace1_rgbcct/POWER”
    state_topic: “tele/fireplace1_rgbcct/STATE”
    state_value_template: “{{value_json.POWER}}”
    availability_topic: “tele/fireplace1_rgbcct/LWT”
    brightness_command_topic: “cmnd/fireplace/Dimmer”
    brightness_state_topic: “tele/fireplace1_rgbcct/STATE”
    brightness_scale: 100
    on_command_type: “brightness”
    brightness_value_template: “{{value_json.Dimmer}}”
    color_temp_command_topic: “cmnd/fireplace1_rgbcct/CT”
    color_temp_state_topic: “tele/fireplace1_rgbcct/STATE”
    color_temp_value_template: “{{value_json.CT}}”
    rgb_command_topic: “cmnd/fireplace1_rgbcct/Color2”
    rgb_state_topic: “tele/fireplace1_rgbcct/STATE”
    rgb_value_template: “{{value_json.Color.split(‘,’)[0:3]|join(‘,’)}}”
    effect_command_topic: “cmnd/fireplace1_rgbcct/Scheme”
    effect_state_topic: “tele/fireplace1_rgbcct/STATE”
    effect_value_template: “{{value_json.Scheme}}”
    effect_list:

    • 0
    • 1
    • 2
    • 3
    • 4
      payload_on: “ON”
      payload_off: “OFF”
      payload_available: “Online”
      payload_not_available: “Offline”
      qos: 1
      retain: false

Any insights or suggestions would be greatly appreciated! I realize I’ll have to adjust color and temperature via the app for now.