MagicHome LED Strip - MQTT Light - Brightness 100% When I Change Colour

I turn on the light, set the brightness to x%, then when I change colour it changes but the brightness also changes to 100%. I want to keep it at the previous brightness level.

What have I got wrong in my configuration?

  • platform: mqtt
    name: “Nursery Light”
    state_topic: “stat/deviceName/RESULT”
    command_topic: “cmnd/deviceName/POWER”
    state_value_template: “{{ value_json.POWER }}”
    brightness_state_topic: “stat/deviceName/RESULT”
    brightness_command_topic: “cmnd/deviceName/Dimmer”
    brightness_scale: 100
    brightness_value_template: “{{ value_json.Dimmer }}”
    rgb_command_topic: “cmnd/deviceName/Color”
    rgb_command_template: “{{ ‘%02x%02x%02x’ | format(red, green, blue)}}”
    rgb_state_topic: “stat/deviceName/RESULT”
    rgb_value_template: “{{(value_json.Channel[0]*2.55)|int}},{{(value_json.Channel[1]*2.55)|int}},{{(value_json.Channel[2]*2.55)|int}}”
    effect_state_topic: “stat/deviceName/RESULT”
    effect_command_topic: “cmnd/deviceName/Scheme”
    effect_list:
    - 0
    - 1
    - 2
    - 3
    - 4
    retain: false
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”

Tasmota console:

11:03:32 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”}
11:03:32 MQT: stat/nurseryStripRGB/POWER = ON
11:03:39 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”,“Dimmer”:100,“Color”:“FF0000”,“HSBColor”:“0,100,100”,“Channel”:[100,0,0]}
11:03:39 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”}
11:03:39 MQT: stat/nurseryStripRGB/POWER = ON
11:03:46 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”,“Dimmer”:15,“Color”:“260000”,“HSBColor”:“0,100,15”,“Channel”:[15,0,0]}
11:03:46 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”}
11:03:46 MQT: stat/nurseryStripRGB/POWER = ON
11:03:51 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”,“Dimmer”:100,“Color”:“FF007F”,“HSBColor”:“330,100,100”,“Channel”:[100,0,50]}
11:03:51 MQT: stat/nurseryStripRGB/RESULT = {“POWER”:“ON”}
11:03:51 MQT: stat/nurseryStripRGB/POWER = ON

Thanks!

Having similar issues also. Just recently flashed the MagicHome controllers with Tasmota.
Bedtime script slowly dims the lights down but now it briefly flashes us at each increment

@automationpirate - solved this, found a fix deep in the Tasmota issues list. I changed the topic I am calling in my above configuration

rgb_command_topic: “cmnd/deviceName/Color" to call Color2 instead. Now respects the brightness when changing colours and turns on at the correct brightness (I was originally getting 100% for a split second before it dimmed).

I recently found using the dimmer command was working rather than sending power all the time.
Only issue is when I send “DIMMER 0”, home assistant doesn’t seem to realise it’s actually off.

Your way seems better, I’ll give it a go.
Cheers!