{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22","id":61512364,"html_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge/pull/22","diff_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge/pull/22.diff","patch_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge/pull/22.patch","issue_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/22","number":22,"state":"open","locked":false,"title":"Huge refactor of the SmartApp - SUPPORTS EVERY CAPABILITY","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"body":"Things to note:\r\n - SmartThings has crazy restrictions with Groovy\r\n - Cannot use closures in an object\r\n - Have not tested all the devices (I don't have them all)\r\n - Lookup for change from MQTT is VERY inefficient!!","created_at":"2016-03-03T05:26:24Z","updated_at":"2016-03-03T05:26:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22/commits","review_comments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22/comments","review_comment_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/22/comments","statuses_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/statuses/d03b2e914702f5db3d25929a32306d0f4b01d50e","head":{"label":"stjohnjohnson:MajorRefactor","ref":"MajorRefactor","sha":"d03b2e914702f5db3d25929a32306d0f4b01d50e","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"repo":{"id":50438488,"name":"smartthings-mqtt-bridge","full_name":"stjohnjohnson/smartthings-mqtt-bridge","owner":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge","description":"Bridge between SmartThings and MQTT","fork":false,"url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge","forks_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/forks","keys_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/teams","hooks_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/hooks","issue_events_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/events","assignees_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/tags","blobs_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/languages","stargazers_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/stargazers","contributors_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/contributors","subscribers_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/subscribers","subscription_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/subscription","commits_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/merges","archive_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/downloads","issues_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/labels{/name}","releases_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/releases{/id}","deployments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/deployments","created_at":"2016-01-26T15:36:25Z","updated_at":"2016-02-25T03:29:52Z","pushed_at":"2016-03-03T05:25:04Z","git_url":"git://github.com/stjohnjohnson/smartthings-mqtt-bridge.git","ssh_url":"git@github.com:stjohnjohnson/smartthings-mqtt-bridge.git","clone_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge.git","svn_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge","homepage":"https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/","size":37,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":13,"default_branch":"master"}},"base":{"label":"stjohnjohnson:master","ref":"master","sha":"68e98702c34bb58ed65a575c4ca23d0e54b83650","user":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"repo":{"id":50438488,"name":"smartthings-mqtt-bridge","full_name":"stjohnjohnson/smartthings-mqtt-bridge","owner":{"login":"stjohnjohnson","id":622065,"avatar_url":"https://avatars.githubusercontent.com/u/622065?v=3","gravatar_id":"","url":"https://api.github.com/users/stjohnjohnson","html_url":"https://github.com/stjohnjohnson","followers_url":"https://api.github.com/users/stjohnjohnson/followers","following_url":"https://api.github.com/users/stjohnjohnson/following{/other_user}","gists_url":"https://api.github.com/users/stjohnjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/stjohnjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stjohnjohnson/subscriptions","organizations_url":"https://api.github.com/users/stjohnjohnson/orgs","repos_url":"https://api.github.com/users/stjohnjohnson/repos","events_url":"https://api.github.com/users/stjohnjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/stjohnjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge","description":"Bridge between SmartThings and MQTT","fork":false,"url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge","forks_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/forks","keys_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/teams","hooks_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/hooks","issue_events_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/events{/number}","events_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/events","assignees_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/assignees{/user}","branches_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/branches{/branch}","tags_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/tags","blobs_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/statuses/{sha}","languages_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/languages","stargazers_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/stargazers","contributors_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/contributors","subscribers_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/subscribers","subscription_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/subscription","commits_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/contents/{+path}","compare_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/merges","archive_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/downloads","issues_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues{/number}","pulls_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls{/number}","milestones_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/milestones{/number}","notifications_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/labels{/name}","releases_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/releases{/id}","deployments_url":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/deployments","created_at":"2016-01-26T15:36:25Z","updated_at":"2016-02-25T03:29:52Z","pushed_at":"2016-03-03T05:25:04Z","git_url":"git://github.com/stjohnjohnson/smartthings-mqtt-bridge.git","ssh_url":"git@github.com:stjohnjohnson/smartthings-mqtt-bridge.git","clone_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge.git","svn_url":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge","homepage":"https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/","size":37,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22"},"html":{"href":"https://github.com/stjohnjohnson/smartthings-mqtt-bridge/pull/22"},"issue":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/22"},"comments":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/stjohnjohnson/smartthings-mqtt-bridge/statuses/d03b2e914702f5db3d25929a32306d0f4b01d50e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":563,"deletions":100,"changed_files":1}}