Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated the Auth. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Automated the Auth. #5

wants to merge 1 commit into from

Conversation

jimvb
Copy link

@jimvb jimvb commented Mar 13, 2017

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

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=<close or open>&access_token=<token>&t=sensor

For Switches: https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations/<AppID>/event?l=<Exact NAME of sensor>&c=<off or on>&access_token=<token>&t=switch
@jimvb
Copy link
Author

jimvb commented Mar 13, 2017

Would replace the current smartapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant