The Query inject works just fine and is configured:
However I am unable to turn on or turn off the switch. On inject:
Front Window On/Off node is configured:
The Smartthings On/Off node info and help:
The Smarthings switch works fine, I can turn it on and off with its app, and my Query in node red sees the state change.
Any help would be greatly appreciated.
Thank you.
The instructions say that you need to set the payload to an object containing {value: 1} not just the the number 1. To do that in the inject node set the type to {} JSON and the content to {"value": 1}
{value: 1}
{} JSON
{"value": 1}
or with Node-RED 1.1.x you can just set inject to msg.payload.value to 1
Thank you both very much! Works perfect!!