Forgive me if this is not the right place for this question but I thought this fit best. Can someone help enlighten me on the proper way to do the following?
My goal is to replace IFTTT as a service that was doing webhooks/API integration with Smartthings. I just need to replace what IFTTT was doing as i have the other parts solved. What I need is the ability for my iphone (via an iphone “Shortcut”) to visit a URL that then causes Smartthings to turn on a switch/light. I only do this while I’m on local wifi so if the solution requires being on the same LAN, that is fine.
I presume that Smartthings does not offer a way for me to create a web URLthat I can simply visit from my phone that will make this work directly so what I need is a web server that loads a webpage and then i can have that do the other more complicated POST (or whatever actions are needed) over to Smartthings to have it flip the switch??? I have a Raspberry Pi with apache2 and php installed and working. I am not familiar with Groovy but I am familiar with HTML and PHP.
If the above is correct, are the required steps to create a SmartApp on my account and get the Client ID and Secret, then from the Apache server have it do some oauth stuff to generate an access token. Then with this access token I have what i need to start connecting to smartthings to do this?
I tried the above using a sample php oath script and it gave me an access token but I am stuck getting this to work. Can someone point me in the right direction. Just linking to the Api documentation doesn’t help as I got lost. I’m not looking to build something complicated here.