I have a light bulb which is exposed on MQTT like this:
mmg_signallight_wz
state = on
last_updated = 2026-01-13T15:39:52.508881+00:00
last_changed = 2026-01-13T15:39:52.508881+00:00
min_color_temp_kelvin = 1801
max_color_temp_kelvin = 6535
min_mireds = 153
max_mireds = 555
supported_color_modes = ["color_temp", "xy"]
color_mode = "xy"
brightness = 20
color_temp_kelvin = null
color_temp = null
hs_color = [103.689, 80.784]
rgb_color = [105, 255, 49]
xy_color = [0.236988, 0.667994]
off_with_transition = false
off_brightness = null
friendly_name = "Signal Light WZ (Kajplats)"
supported_features = 40
restored = true
Reading MQTT Light - Home Assistant Iâve configured a MQTT Light like this:
- name: mmg_signallight_wz
unique_id: light.mmg_signallight_wz
state_topic: "mmg/hass/light/mmg_signallight_wz/state"
rgb_state_topic: "mmg/hass/light/mmg_signallight_wz/rgb_color"
brightness_state_topic: "mmg/hass/light/mmg_signallight_wz/brightness"
command_topic: "mmg/hass/light/mmg_signallight_wz/state_cmd"
brightness_command_topic: "mmg/hass/light/mmg_signallight_wz/brightness_cmd"
payload_on: "on"
payload_off: "off"
On/Off and brighness work (are shown in light.mmg_signallight_wz), but the color isnât.
Since the rgb_state_topic is exposed via MQTT as [105, 255, 49] and is expected as 105, 255, 49, I think I have to use rgb_value_template instead of rgb_state_topic to get rid of the brackets.
So I changed the config to:
#rgb_state_topic: "mmg/hass/light/mmg_signallight_wz/rgb_color"
rgb_value_template: "105,255,49"
using a fixed value instead of a template (to avoid fiddling aroung with removing the brackets via the template in the first shot) only to see if the rgb_value_template works in principle.
But the color also wasnât shown in light.mmg_signallight_wz.
Itâs also confusing, that the given example in the docu uses rgb_state_topic AND rgb_value_template. But I assume, this is only to give an example for both possibilities and not for real life.
So the question is, how to convert the MQTT rgb_color = [105, 255, 49], into the MQTT light to get the color as well?
tia
Andy







