Device Handler to send HTTP POST command?

I am new to this forum as well as Smartthings.

Can anyone point me to a simple example to create a device handler which can simply send a simple fixed string to a specific IP address as an http POST command?

Appreciate it!

I’ve used the following device handler, works as a virtual switch sending internal or external url post commands.
Thanks and good luck


Thank you for the quick reply. I will try it.

When I go to create the device, it is asking for a “Device Network ID”. What is that, where do I find it??

If it is a “virtual device” meaning your hub does not discover the devices, you just communicate directly to them over HTTP you just make one up. I do N, N is a 9 digit number. You just want it to be unique.