# MQTT Hub/Gateway

**URL:** <https://community.homey.app/t/mqtt-hub-gateway/6766>\
**Category:** Apps\
**Created:** [January 14, 2019, 6:59pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766 "2019-01-14T18:59:50Z")\
**Posts on this page:** 1\
**Showing post:** 668

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [October 2, 2019, 2:23pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/668 "2019-10-02T14:23:50Z")

</div>

Hi guy’s. I’m totally new with this MQTT, but studied hard this weekend and managed to create a nice and working node-red MQTT dashboard. But I’m facing a problem with the lights. I want to control my mi-lights, but I’m only able to control the on/off, brightness and mode… I can’t figure out what I need for “topic” to control the color.

Ive tried (binnenring is the name of the light):

**Works:**  
homie/homey-topic/binnenring/onoff/set : “true” / “false”  
homie/homey-topic/binnenring/dim/set : 100  
homie/homey-topic/binnenring/light-mode/set : “color” / “temperature”

**Does not work:**  
homie/homey-topic/binnenring/color/hsv/set : “{“h”:295,“s”:0,“v”:0}”  
homie/homey-topic/binnenring/color/h/set: 100  
homie/homey-topic/binnenring/light-hue/set: 100  
homie/homey-topic/binnenring/light\_hue/set: 100  
homie/homey-topic/binnenring/color/set: 0

**When I watch the debug, and I change the lights hue, I see:**  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color : msg.payload : string[7]  
“227,0,0”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/rgb : msg.payload : string[19]  
“{“r”:0,“g”:0,“b”:0}”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/hsv : msg.payload : string[21]  
“{“h”:227,“s”:0,“v”:0}”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/r : msg.payload : string[0]  
“”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/g : msg.payload : string[0]  
“”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/b : msg.payload : string[0]  
“”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/h : msg.payload : string[3]  
“227”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/s : msg.payload : string[0]  
“”  
2-10-2019 16:21:51node: 61a2f231.6d05cchomie/homey-topic/binnenring/color/v : msg.payload : string[0]  
“”  
(Maybe that’s some help?)  
Anyway, can someone point out what the topic needs to be to adjust the color?

---

_[View the full topic](https://community.homey.app/t/mqtt-hub-gateway/6766)._
