# Node Red Samsung Automation flow - Receive sensor data without polling

**URL:** <https://community.smartthings.com/t/node-red-samsung-automation-flow-receive-sensor-data-without-polling/252364>\
**Category:** Devices & Integrations\
**Created:** [November 20, 2022, 10:35am UTC](https://community.smartthings.com/t/node-red-samsung-automation-flow-receive-sensor-data-without-polling/252364 "2022-11-20T10:35:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeG996](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@MikeG996](https://community.smartthings.com/u/MikeG996)\
**Post date:** [November 20, 2022, 10:35am UTC](https://community.smartthings.com/t/node-red-samsung-automation-flow-receive-sensor-data-without-polling/252364/1 "2022-11-20T10:35:10Z")

</div>

Before the “changes”, I used to use the Smarttings “node-red-contrib-smartthings” palette. This made it easy to receive data from - for instance - a motion sensor when motion was detected.

I can’t seem to find a way to achieve this using the Automation Studio palette. I’ve seen posts mentioning “webhooks” and the need to set up SSL to process requests however there is little documentation available (or maybe I just can’t find it!). I’ve resorted to polling the sensors but I get the feeling this is a cumbersome way of doing things.

Can anyone give me some pointers please?

---

<div class="post-metadata">

**Author:** ![montyfert](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/montyfert/32/187267_2.png) [@montyfert](https://community.smartthings.com/u/montyfert)\
**Post date:** [November 20, 2022, 3:31pm UTC](https://community.smartthings.com/t/node-red-samsung-automation-flow-receive-sensor-data-without-polling/252364/2 "2022-11-20T15:31:38Z")

</div>

hi this might help  
MQTT

> [@Integration Solutions using MQTT](https://community.smartthings.com/t/integration-solutions-using-mqtt/245186):
>
> I’d like to share some projects I’ve been working on that provide some nice integration options between SmartThings and other external applications. These use MQTT, which if you’re not familiar with, you can find plenty of information about on the internet. Put simply, you install what’s called an MQTT Broker application onto an always-on computer on your LAN (‘Mosquitto’ is one of the more popular free ones), and it provides a structured way to publish and subscribe to messages across devices and applications. This provides a nice solution to being able to get device information into, and out of SmartThings in a consistent and reliable way with little-to-no development expertise required. MQTT solutions have existed for SmartThings on the ‘old’ Groovy-based platform. My new projects …

OR  
HTTP

> [@\[ST Edge\] Web Requestor: a driver to issue local POST and GET HTTP requests](https://community.smartthings.com/t/st-edge-web-requestor-a-driver-to-issue-local-post-and-get-http-requests/232911):
>
> I have a new Edge driver to share that provides the ability to issue POST and GET web requests to a specified URL. This functionality can help users that may today depend on webCoRE or other cloud-based means to do a similar task. Of course being an Edge driver it enables you to have fast & local automations. There are two ways this driver can be used: Pre-configure up to 50 different POST/GET URL strings, which can then be individually triggered through Automations/Rules or via a button in the mobile app. Issue custom URL POST/GET commands from within a Rule \>\>\>\>\>UPDATE: Please go to [this readme file](https://github.com/toddaustin07/webrequestor/blob/main/README.md) for the latest instructions Limitations Although GET method is supported, it currently does not actually do anything with the returned data from the server. I’m open to ideas he…

---

<div class="post-metadata">

**Author:** ![orangebucket](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/orangebucket/32/81590_2.png) [@orangebucket](https://community.smartthings.com/u/orangebucket)\
**Post date:** [November 20, 2022, 3:58pm UTC](https://community.smartthings.com/t/node-red-samsung-automation-flow-receive-sensor-data-without-polling/252364/3 "2022-11-20T15:58:53Z")

</div>

I’ve only used the Automation Studio palette on the Automation Studio site itself and that rather shields you from some of the fine details.

There is certainly a way of creating flows that acts as a webHook SmartApp and so can be registered using the Developer Workspace and ‘published to Test’ for use in the mobile app. That would require a secure endpoint. It rather assumes that users are already familiar with the concepts from prior experience.

_As it happens that functionality has mysteriously disappeared from the Developer Workspace this last week and although the same job can largely be done with the CLI/API the publishing bit is a puzzle. So it isn’t clear what is going on there._

The trivial flows I’ve played with receive subscriptions with Server-Sent Events and don’t need any action on the ST end to set up which makes them rather attractive but also a complete mystery.
