Back on the previous version of my SmartThings Hub, I had a simple Groovy code device handler which had three basic functions:
- On
- Off
- Status
You could assign a URI to each of these states. When you pressed “on”, it would invoke that URI. When the app was initially starting, it would invoke the “Status” URI to find the current status of the “device”.
I know Todd Austin has a really great and useful “Web Requester Multi v1.2”, which I have and it works really well. I thank him for making this available! I think the only way to use this in order to implement what looks like a switch, however, is to create a virtual device switch, then create an automation such that when the switch is turned “on” it invokes the “Web Req Multi” and accesses a URL, then create another automation such that when the switch is turned “off” it invokes a different URL.
This is rather involved in order to create one simple switch, (1) virtual switch, (2) “on” automation, (3) “off” automation. Maybe I’m missing something. It would be nice to have a device driver which can simply directly invoke a URL without having to create all of these extra automations.
Am I, indeed, missing something? Maybe it can be used in a much easier way? Maybe something else is out there which is just a simple URI device driver?