I’m looking to have a switch in my house execute an HTTP Post command when the switch is turned on or off. I have searched through a lot of threads and not found what i was hoping for.
Basically i have the backend automation done. The HTTP server handles what it needs to, but i’m looking to have smartthings be the Physical to Virtual interface.
So if i need to send a post to http://localhost:8080/toggle -on ’ ’ when the switch turns on and http://localhost:8080/toggle -off ’ ’ how would i do this? Ideally these would be CURL but i think JSON or regular POST would work.