otaviojr / node-red-contrib-smartthings

Allows you to control your devices and get their status using NodeRed
MIT License
32 stars 16 forks source link

"OnOff node" issue #37

Closed Drahos-X closed 2 years ago

Drahos-X commented 4 years ago

I have an issue with OnOff node.

Request for status works perfectly fine (Node Inject - Topic: Update).

However the action of turning the device On/Off (Node Inject - Topic: "switch", Payload: 1) does not work at all. I can only see the message "Input Message Received" in the console log, but nothing happens. The flow stops in OnOff node, no message in debug.

Zbrooklyn commented 3 years ago

you need to convert the payload to a value "msg.payload.value = 0" you can use the switch node for that