Simple Web URL Edge device driver?

Back on the previous version of my SmartThings Hub, I had a simple Groovy code device handler which had three basic functions:

  1. On
  2. Off
  3. 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?

We already did this with Todd, search “HTTP devices”.

2 Likes

Hi, @rajid
Edge drivers don’t have access to the Internet, only the LAN network. That’s why Todd created that workaround.
You could use SmartApps as well to make requests to URLs if this is for personal use. Remember you would have to host the code and that they work on the Cloud, not locally.

Yes, I know Edge drivers can’t access outside of the local LAN. I only want access within my LAN, however, so this is no problem. I was just looking for a simple Edge driver which can be configured, per device, with a URL to call for “on” and one for “off”. Having one for “status” would be a good idea as well, but I can live without that. I found “Tasmota Edge” and it seems to do what I want, but I haven’t been able to get it to work yet. I’ll keep looking. Meanwhile, Todd Austin’s code works well, even if I do have to create two additional automations for every device I want to control.