heythisisnate / nodemcu-smartthings

Connect wired contact sensors and/or motion sensors to SmartThings using a NodeMCU ESP8266
MIT License
64 stars 33 forks source link

Automated the Auth. #5

Open jimvb opened 7 years ago

jimvb commented 7 years ago

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//event?l=&c=&access_token=&t=sensor

For Switches: https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations//event?l=&c=&access_token=&t=switch

jimvb commented 7 years ago

Would replace the current smartapp