{"action":"created","comment":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments/213483579","pull_request_review_id":150330764,"id":213483579,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzQ4MzU3OQ==","diff_hunk":"@@ -0,0 +1,140 @@\n+/**\n+*  Copyright 2015 SmartThings\n+*\n+*  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n+*  in compliance with the License. You may obtain a copy of the License at:\n+*\n+*      http://www.apache.org/licenses/LICENSE-2.0\n+*\n+*  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed\n+*  on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License\n+*  for the specific language governing permissions and limitations under the License.\n+*\n+*/\n+\n+metadata {\n+    definition (name: \"ZigBee Multi Switch\", namespace: \"smartthings\", author: \"SmartThings\", ocfDeviceType: \"oic.d.switch\", runLocally: false, minHubCoreVersion: '000.019.00012', executeCommandsLocally: true, vid: \"generic-switch\" ) {\n+        capability \"Actuator\"\n+        capability \"Configuration\"\n+        capability \"Refresh\"\n+        capability \"Health Check\"\n+        capability \"Switch\"\n+        \n+        command \"childOn\", [\"string\"]\n+        command \"childOff\", [\"string\"]\n+        \n+        fingerprint  profileId: \"0104\", inClusters: \"0000, 0005, 0004, 0006\", manufacturer: \"0000000\", model: \"cc891c853291418daa4e26cb315a3a0c\", deviceJoinName: \"Orvibo Smart Switch 1\"\n+       }\n+    // simulator metadata\n+    simulator {\n+        // status messages\n+        status \"on\": \"on/off: 1\"\n+        status \"off\": \"on/off: 0\"\n+\n+        // reply messages\n+        reply \"zcl on-off on\": \"on/off: 1\"\n+        reply \"zcl on-off off\": \"on/off: 0\"\n+    }\n+\n+    tiles(scale: 2) {\n+        multiAttributeTile(name:\"switch\", type: \"lighting\", width: 6, height: 4, canChangeIcon: true){\n+            tileAttribute (\"device.switch\", key: \"PRIMARY_CONTROL\") {\n+                attributeState \"on\", label:'${name}', action:\"switch.off\", icon:\"st.switches.light.on\", backgroundColor:\"#00A0DC\", nextState:\"turningOff\"\n+                attributeState \"off\", label:'${name}', action:\"switch.on\", icon:\"st.switches.light.off\", backgroundColor:\"#ffffff\", nextState:\"turningOn\"\n+                attributeState \"turningOn\", label:'${name}', action:\"switch.off\", icon:\"st.switches.light.on\", backgroundColor:\"#00A0DC\", nextState:\"turningOff\"\n+                attributeState \"turningOff\", label:'${name}', action:\"switch.on\", icon:\"st.switches.light.off\", backgroundColor:\"#ffffff\", nextState:\"turningOn\"\n+            }\n+        }\n+        standardTile(\"refresh\", \"device.refresh\", inactiveLabel: false, decoration: \"flat\", width: 2, height: 2) {\n+            state \"default\", label:\"\", action:\"refresh.refresh\", icon:\"st.secondary.refresh\"\n+        }\n+        main \"switch\"\n+        details([\"switch\", \"refresh\"])\n+    }\n+}\n+\n+def installed() {\n+         createChildDevices()","path":"devicetypes/smartthings/zigbee-dual-switch.src/zigbee-dual-switch.groovy","position":57,"original_position":57,"commit_id":"09e556e2563560dc144bafd79fbc86ebc639b6e9","original_commit_id":"09e556e2563560dc144bafd79fbc86ebc639b6e9","user":{"login":"greens","id":123942,"node_id":"MDQ6VXNlcjEyMzk0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/123942?v=4","gravatar_id":"","url":"https://api.github.com/users/greens","html_url":"https://github.com/greens","followers_url":"https://api.github.com/users/greens/followers","following_url":"https://api.github.com/users/greens/following{/other_user}","gists_url":"https://api.github.com/users/greens/gists{/gist_id}","starred_url":"https://api.github.com/users/greens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greens/subscriptions","organizations_url":"https://api.github.com/users/greens/orgs","repos_url":"https://api.github.com/users/greens/repos","events_url":"https://api.github.com/users/greens/events{/privacy}","received_events_url":"https://api.github.com/users/greens/received_events","type":"User","site_admin":false},"body":"inconsistent whitespace","created_at":"2018-08-28T21:47:38Z","updated_at":"2018-08-28T21:47:38Z","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412#discussion_r213483579","pull_request_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments/213483579"},"html":{"href":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412#discussion_r213483579"},"pull_request":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412"}}},"pull_request":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412","id":211383472,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMzgzNDcy","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412","diff_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412.diff","patch_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412.patch","issue_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/3412","number":3412,"state":"open","locked":false,"title":"WWST-1485: DTH for orvibo 2 gang switch","user":{"login":"FenMei007S","id":40883570,"node_id":"MDQ6VXNlcjQwODgzNTcw","avatar_url":"https://avatars3.githubusercontent.com/u/40883570?v=4","gravatar_id":"","url":"https://api.github.com/users/FenMei007S","html_url":"https://github.com/FenMei007S","followers_url":"https://api.github.com/users/FenMei007S/followers","following_url":"https://api.github.com/users/FenMei007S/following{/other_user}","gists_url":"https://api.github.com/users/FenMei007S/gists{/gist_id}","starred_url":"https://api.github.com/users/FenMei007S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FenMei007S/subscriptions","organizations_url":"https://api.github.com/users/FenMei007S/orgs","repos_url":"https://api.github.com/users/FenMei007S/repos","events_url":"https://api.github.com/users/FenMei007S/events{/privacy}","received_events_url":"https://api.github.com/users/FenMei007S/received_events","type":"User","site_admin":false},"body":"DTH for orvibo 2 gang switch basing on hub can report endpoint info,when switch status change,  DTH can receive both \"on/off\" and catchall: 0104 0006 01 0A 0140 00 D29F 00 00 0000 0A 01 00001001\r\ningore 'on/off' message that without ep info, parse catchall message.","created_at":"2018-08-28T11:03:56Z","updated_at":"2018-08-28T21:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a4d7e6b8b01ea61bb552917d6cfb4006d34c128","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412/commits","review_comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412/comments","review_comment_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/3412/comments","statuses_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/09e556e2563560dc144bafd79fbc86ebc639b6e9","head":{"label":"FenMei007S:WWST-1485","ref":"WWST-1485","sha":"09e556e2563560dc144bafd79fbc86ebc639b6e9","user":{"login":"FenMei007S","id":40883570,"node_id":"MDQ6VXNlcjQwODgzNTcw","avatar_url":"https://avatars3.githubusercontent.com/u/40883570?v=4","gravatar_id":"","url":"https://api.github.com/users/FenMei007S","html_url":"https://github.com/FenMei007S","followers_url":"https://api.github.com/users/FenMei007S/followers","following_url":"https://api.github.com/users/FenMei007S/following{/other_user}","gists_url":"https://api.github.com/users/FenMei007S/gists{/gist_id}","starred_url":"https://api.github.com/users/FenMei007S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FenMei007S/subscriptions","organizations_url":"https://api.github.com/users/FenMei007S/orgs","repos_url":"https://api.github.com/users/FenMei007S/repos","events_url":"https://api.github.com/users/FenMei007S/events{/privacy}","received_events_url":"https://api.github.com/users/FenMei007S/received_events","type":"User","site_admin":false},"repo":{"id":139951129,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5NTExMjk=","name":"SmartThingsPublic","full_name":"FenMei007S/SmartThingsPublic","owner":{"login":"FenMei007S","id":40883570,"node_id":"MDQ6VXNlcjQwODgzNTcw","avatar_url":"https://avatars3.githubusercontent.com/u/40883570?v=4","gravatar_id":"","url":"https://api.github.com/users/FenMei007S","html_url":"https://github.com/FenMei007S","followers_url":"https://api.github.com/users/FenMei007S/followers","following_url":"https://api.github.com/users/FenMei007S/following{/other_user}","gists_url":"https://api.github.com/users/FenMei007S/gists{/gist_id}","starred_url":"https://api.github.com/users/FenMei007S/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FenMei007S/subscriptions","organizations_url":"https://api.github.com/users/FenMei007S/orgs","repos_url":"https://api.github.com/users/FenMei007S/repos","events_url":"https://api.github.com/users/FenMei007S/events{/privacy}","received_events_url":"https://api.github.com/users/FenMei007S/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FenMei007S/SmartThingsPublic","description":"SmartThings open-source DeviceTypeHandlers and SmartApps code","fork":true,"url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic","forks_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/forks","keys_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/teams","hooks_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/hooks","issue_events_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/issues/events{/number}","events_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/events","assignees_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/assignees{/user}","branches_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/branches{/branch}","tags_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/tags","blobs_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/git/refs{/sha}","trees_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/statuses/{sha}","languages_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/languages","stargazers_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/stargazers","contributors_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/contributors","subscribers_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/subscribers","subscription_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/subscription","commits_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/commits{/sha}","git_commits_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/git/commits{/sha}","comments_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/comments{/number}","issue_comment_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/issues/comments{/number}","contents_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/contents/{+path}","compare_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/merges","archive_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/downloads","issues_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/issues{/number}","pulls_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/pulls{/number}","milestones_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/milestones{/number}","notifications_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/labels{/name}","releases_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/releases{/id}","deployments_url":"https://api.github.com/repos/FenMei007S/SmartThingsPublic/deployments","created_at":"2018-07-06T07:46:46Z","updated_at":"2018-07-25T02:11:18Z","pushed_at":"2018-08-28T11:01:23Z","git_url":"git://github.com/FenMei007S/SmartThingsPublic.git","ssh_url":"git@github.com:FenMei007S/SmartThingsPublic.git","clone_url":"https://github.com/FenMei007S/SmartThingsPublic.git","svn_url":"https://github.com/FenMei007S/SmartThingsPublic","homepage":"http://developer.smartthings.com/","size":10424,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SmartThingsCommunity:master","ref":"master","sha":"44dfb59ccd3000c9737a48d93d468b6ee03f4a60","user":{"login":"SmartThingsCommunity","id":7317431,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczMTc0MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/7317431?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":40212802,"node_id":"MDEwOlJlcG9zaXRvcnk0MDIxMjgwMg==","name":"SmartThingsPublic","full_name":"SmartThingsCommunity/SmartThingsPublic","owner":{"login":"SmartThingsCommunity","id":7317431,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczMTc0MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/7317431?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","description":"SmartThings open-source DeviceTypeHandlers and SmartApps code","fork":false,"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic","forks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/forks","keys_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/teams","hooks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/hooks","issue_events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/events{/number}","events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/events","assignees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/assignees{/user}","branches_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/branches{/branch}","tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/tags","blobs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/{sha}","languages_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/languages","stargazers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/stargazers","contributors_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contributors","subscribers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscribers","subscription_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscription","commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contents/{+path}","compare_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/merges","archive_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/downloads","issues_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues{/number}","pulls_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls{/number}","milestones_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/milestones{/number}","notifications_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/labels{/name}","releases_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/releases{/id}","deployments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/deployments","created_at":"2015-08-04T22:48:02Z","updated_at":"2018-08-28T17:52:53Z","pushed_at":"2018-08-28T21:17:06Z","git_url":"git://github.com/SmartThingsCommunity/SmartThingsPublic.git","ssh_url":"git@github.com:SmartThingsCommunity/SmartThingsPublic.git","clone_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic.git","svn_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","homepage":"https://docs.smartthings.com/en/latest/","size":10690,"stargazers_count":984,"watchers_count":984,"language":"Groovy","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43761,"mirror_url":null,"archived":false,"open_issues_count":1004,"license":null,"forks":43761,"open_issues":1004,"watchers":984,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412"},"html":{"href":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/3412"},"issue":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/3412"},"comments":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/3412/comments"},"review_comments":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412/comments"},"review_comment":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/3412/commits"},"statuses":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/09e556e2563560dc144bafd79fbc86ebc639b6e9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"greens"}}