Adding a qubino flush dimmer from smartthings hub v2 need help withe the yaml file

Hi

i need a little help how this dimmer should be added in yaml file.
if i ad it like this:

light:

  • platform: mqtt
    name: “Höger Tak”
    state_topic: “smartthings/Vardagsrum Nere Höger Tak/level/switch”
    command_topic: “smartthings/Vardagsrum Nere Höger Tak/level/switch”
    brightness_state_topic: “smartthings/Vardagsrum Nere Höger Tak/level”
    brightness_command_topic: “smartthings/Vardagsrum Nere Höger Tak/level”
    payload_on: “on”
    payload_off: “off”
    retain: true
    initial: 5
    min: 1
    i can dimm it using the slider, but the button on/off doesn’t work. and i cant turn it off using the slider (it stays at about 9% but i can turn it on using the slider.

Can someone guide me on how this should be added?
also i like to see the power used and so on.

//Regards