nodemcu-smartthings icon indicating copy to clipboard operation
nodemcu-smartthings copied to clipboard

Automated the Auth.

Open jimvb opened this issue 7 years ago • 1 comments

Install Smartapp, enable oauth and save. Open smartapp, select devices, click show ids and write them down, all you need is AppID and AuthID. That's it, devices are ready to go using https. Would require rework of variables and application for the different vars and url that needs passed. Uses name of device, not device id. Would make the process of setup a lot easier along with adding sensors/switches.

Will control sensors and switches, including current sensors and switches.

For all sensors: https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations/<AppID>/event?l=<Exact NAME of sensor>&c=&access_token=&t=sensor

For Switches: https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations/<AppID>/event?l=<Exact NAME of sensor>&c=&access_token=&t=switch

jimvb avatar Mar 13 '17 02:03 jimvb

Would replace the current smartapp

jimvb avatar Mar 13 '17 02:03 jimvb