# MQTT can listen but $command not working

**URL:** https://community.homey.app/t/mqtt-can-listen-but-command-not-working/23955
**Category:** Apps
**Created:** [January 7, 2020, 1:13am UTC](https://community.homey.app/t/mqtt-can-listen-but-command-not-working/23955 "2020-01-07T01:13:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Verhagen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_verhagen/32/16716_2.png) [@Stefan\_Verhagen](https://community.homey.app/u/Stefan_Verhagen)
#### Post date: [January 7, 2020, 1:13am UTC](https://community.homey.app/t/mqtt-can-listen-but-command-not-working/23955/1 "2020-01-07T01:13:57Z")

</div>

I can listen to MQTT payload via the topic homie/homey

but

homie/homey/$command with payload  
{  
“command”: “set”,  
“device”: {  
“name”: “hue-color-spot-1-werkkamer”  
},  
“capability”: “onoff”,  
“value”: true  
}  
does not work

BTW:  
homie/homey/hue-color-spot-1-werkkamer/onoff/set “false”  
does work.

but the $command version would be more elegant to use in nodejs.
