Closed mpovolo closed 2 years ago
I also have a problem with understanding how switches work. Making a function node from example worked:
var msg = {
topic: "switch",
payload: {
value: 1
}
}
return msg;
But connecting two switches together with wire doesn't work.
Injecting number 0 or 1 to the switch doesn't do anything.
Seems like value
needs to be renamed to number
to make it work.
Also, it makes more sense to make switch type as boolean.
Thanks, that function node actually helped, I couldn't get that to work either and now it does. Thanks so much
Many thanks, I ran into the same issues!
No problem ;)
I have tried so many nodes with various formats of topic updates and switch, cannot seem to figure out how to create a node and input it to the Smartthings switch node and toggle it on.
Can you explain how to do that input node, type, format etc.
thanks so much