octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

NodeBlue Skynet hub #59

Closed mareknbg closed 10 years ago

mareknbg commented 10 years ago

I am trying to connect my hue lights

msg.subdevice = 'M_Room_Lights2'; msg.payload = { setState: {lightNumber: 1, on: false}

}; return msg;

but in /home/pi/hub/hub.log on my raspberryPi I found an error:

message received from: xxxx-UUID-NodeBlu-xxxx matching subdevice found: M_Room_Lights2 messenger send { devices: 'xxxx-UUID-NodeBlu-xxxx', message: [ { error: [Object] } ] } undefined

What's wrong? On my raspberryPi I have only installed skynet hub

mareknbg commented 10 years ago

The issue is fixed. It was an incorrect payload syntax. This is the correct one msg.payload = { setState: {lightNumber: 1, options:{on: false}}

};