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!