Skydance LED dimmer and Light Control in HA

Using instructions from obrador : Skydance 2.4G RF I made Skydance dimmer working with MQTT.

Then I create lights in HA with following code:

light:
  - platform: mqtt
    schema: template
    command_topic: "/wifirelay/led1/command"
    command_on_template: "ON"
    command_off_template: "OFF"
    brightness_template: "DIM {{ [1] }}"
    brightness_scale: 100

Sadly, it sends only ON and OFF commands, no DIM. Any idea what I did wrong?

Jarek