Node-Red and Smartthings

Anyone have experience with this palette? It appears to grant access to Smartthings devices and is API based, so will continue working after the Groovy IDE is phased out.

And it also seems possible to host Node red in the cloud without purchasing equipment or putting up a server, which could be an option fur some.

2 Likes

I’m using this palette … as for hosting the nodered I created an instance on aws EC2 but I can’t put a password … it needs to be a public ip …

in this flow I’m using these nodes

2 Likes

I am using it as well, but with Hubitat. I am running it at home with DuckDNS and Nginx to help with the external access and SSL/TLS and provide security. Nginx has allowed me to setup endpoints with SSL and not expose the main interface, just the endpoint.

Ok… I finally was able to use the official node ā€œAutomationā€ from node-red-contrib-samsung-automation-studio-nodes.

I had to import the template ā€œSmartThings : Automationā€ from Samsung Automation Studio.
Template "SmartThings : Automation"

I also had to read the source code to understand Automation can only connect with a single Event Device and nothing more, not even Debug.

I simply used localtunnel

lt -p PORT -s SUBDOMAIN --local-https

I created the ā€œWebHook Endpointā€ and was able to deploy and test.
The problem is: the smartapp just DISAPPEARED and now I can’t modify its settings anymore.

2 Likes

That is fairly strange. I have had mine out there now for weeks or even a few months. Make sure you check your Smartthings developer workspace and that the app is still registered and showing as functional with connectivity. Your tunnel may be what is causing the issue.

The interesting part is that the automation still works.
I just can’t modify the selected devices anymore.

It stops working when I click ā€œUnlist from testā€ and starts working again when I click ā€œDeploy to testā€.

image

Did you somehow take your phone out of developer mode?

1 Like

That is exactly what happened! Thanks, @Mavrrick58
For some reason, Developer Mode was disabled.

1 Like

Hi
I did smartapp in ide and taken too.
But when I tried to work on node red there is no comunication the smartapp (nodered casa) doesn’t have the activation.

Hi, could you help me with node-red? I configured everything necessary to make it communicate with Smartthing, I installed the smartthing palette and from node-red I can see all the devices I have enabled. The problem is that the status changes of the devices I have on smartthing do not arrive on node-red, do you have any suggestions for me to solve the problem? Thank you

What is it with the Webhock ? I read about it by an other implementation of smarthing nodes, not at the original Samsung Nodes…

Could you please explain ?

I tried to get information about ma smartTag (polling). It is visible at my ā€œdevicesā€ but asking parameters, all are ā€œnullā€ā€¦

Did someone smarttag working ?