Hey all,
Recently I was in our local Ikea with my wife, and decided to check out what they had in the way of Tradfri bulbs. I was looking for something that did daylight, since my wife prefers the daylight bulbs over the the warmer white bulbs. I happened to find this one and decided to pick it up:
https://www.ikea.com/us/en/catalog/products/20411562/
It wasn’t until I got it home that I realized it was an RGB bulb, so that was a bonus. I am currently using a SmartThings v2 hub as my ZWave and Zigbee radios using MQTT. I was able to get the bulb added into SmartThings using the custom handler that was written, and I can change colors and everything without a problem. I can even get basic functionality of the bulb into Home Assistant, but where I’m fumbling is trying to get the color part working. Here’s some of the MQTT messaging I’m seeing in the logs of my MQTT bridge:
2019-01-13T22:26:46.246Z - info: Incoming message from SmartThings: smartthings/Ikea Light/switch = on
2019-01-13T22:26:46.248Z - info: Incoming message from MQTT: smartthings/Ikea Light/switch = on
2019-01-13T22:26:46.248Z - info: Skipping duplicate message from: smartthings/Ikea Light/switch = on
2019-01-13T22:26:51.760Z - info: Incoming message from SmartThings: smartthings/Ikea Light/color = #FFAD5A
2019-01-13T22:26:51.762Z - info: Incoming message from MQTT: smartthings/Ikea Light/color = #FFAD5A
2019-01-13T22:26:51.762Z - info: Skipping duplicate message from: smartthings/Ikea Light/color = #FFAD5A
2019-01-13T22:26:51.855Z - info: Incoming message from SmartThings: smartthings/Ikea Light/hue = 8
2019-01-13T22:26:51.856Z - info: Incoming message from MQTT: smartthings/Ikea Light/hue = 8
2019-01-13T22:26:51.856Z - info: Skipping duplicate message from: smartthings/Ikea Light/hue = 8
2019-01-13T22:26:51.943Z - info: Incoming message from SmartThings: smartthings/Ikea Light/saturation = 65
2019-01-13T22:26:51.944Z - info: Incoming message from MQTT: smartthings/Ikea Light/saturation = 65
2019-01-13T22:26:51.944Z - info: Skipping duplicate message from: smartthings/Ikea Light/saturation = 65
2019-01-13T22:27:51.432Z - info: Incoming message from SmartThings: smartthings/Ikea Light/level = 100
2019-01-13T22:27:51.434Z - info: Incoming message from MQTT: smartthings/Ikea Light/level = 100
2019-01-13T22:27:51.434Z - info: Skipping duplicate message from: smartthings/Ikea Light/level = 100
2019-01-13T22:28:25.200Z - info: Incoming message from SmartThings: smartthings/Ikea Light/saturation = 89
2019-01-13T22:28:25.203Z - info: Incoming message from MQTT: smartthings/Ikea Light/saturation = 89
2019-01-13T22:28:25.203Z - info: Skipping duplicate message from: smartthings/Ikea Light/saturation = 89
2019-01-13T22:28:25.294Z - info: Incoming message from SmartThings: smartthings/Ikea Light/color = #FFEE1D
2019-01-13T22:28:25.295Z - info: Incoming message from MQTT: smartthings/Ikea Light/color = #FFEE1D
2019-01-13T22:28:25.295Z - info: Skipping duplicate message from: smartthings/Ikea Light/color = #FFEE1D
2019-01-13T22:28:25.387Z - info: Incoming message from SmartThings: smartthings/Ikea Light/hue = 15
2019-01-13T22:28:25.388Z - info: Incoming message from MQTT: smartthings/Ikea Light/hue = 15
2019-01-13T22:28:25.388Z - info: Skipping duplicate message from: smartthings/Ikea Light/hue = 15
I even tried to follow the directions on the MQTT light component page on the Home Assistant docs section of the website using the “Brightness and RGB support section”, but I couldn’t seem to get it working and was just fumbling my way through. Here’s what I have so far (I changed the name of the light from “Ikea Light” to “Dining Room Light 1” after I grabbed the logs from the MQTT bridge):
- platform: mqtt
name: "Dining Room Light 1"
state_topic: "smartthings/Dining Room Light 1/switch"
command_topic: "smartthings/Dining Room Light 1/switch"
brightness_state_topic: "smartthings/Dining Room Light 1/level"
brightness_command_topic: "smartthings/Dining Room Light 1/level"
brightness_scale: 100
rgb_state_topic: "smartthings/Dining Room Light 1/color"
rgb_command_topic: "smartthings/Dining Room Light 1/color"
rgb_value_template: "{{ value_json.rgb | join(',') }}"
payload_on: "on"
payload_off: "off"
rgb: true
retain: true
Any thoughts or suggestions? Anyone else have a similar setup working?