Node-Red and Smartthings

With it looking less likely Voicemonkey is coming back, I found a nice workaround to actually trigger node red flows easily from Webcore, and actually pass a string to the msg.payload from Webcore to Node red. This can be nice to take advantage of using both Webcore and Node red, or gradually switch to Nodered without doing everything at once.

First step is to setup Node red of course, then use the Http in node. Create any random URL endpoint you want with method POST.

Then use Webcore to make a web request using your internal node red IP address adding on the URL endpoint you put in the HTTP node. The expression you put in the plain text of the POST request in Webcore will be in the message.payload in Node Red. You can then use this to make announcements to Alexa of whatever the expression was from Webcore. Or trigger whatever other flow you want in Node Rd. You just need a template node and HTTP response node so Webcore knows the web request was successful.

Screenshot from 2021-03-12 15-18-12

1 Like