{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/299344087","pull_request_review_id":256711092,"id":299344087,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5OTM0NDA4Nw==","diff_hunk":"@@ -0,0 +1,270 @@\n+/**\n+ * Copyright (c) 2010-2019 Contributors to the openHAB project\n+ *\n+ * See the NOTICE file(s) distributed with this work for additional\n+ * information.\n+ *\n+ * This program and the accompanying materials are made available under the\n+ * terms of the Eclipse Public License 2.0 which is available at\n+ * http://www.eclipse.org/legal/epl-2.0\n+ *\n+ * SPDX-License-Identifier: EPL-2.0\n+ */\n+package org.openhab.binding.vektiva.handler;\n+\n+import org.eclipse.jdt.annotation.NonNullByDefault;\n+import org.eclipse.jdt.annotation.Nullable;\n+import org.eclipse.jetty.client.HttpClient;\n+import org.eclipse.jetty.client.api.ContentResponse;\n+import org.eclipse.jetty.http.HttpMethod;\n+import org.eclipse.jetty.websocket.api.Session;\n+import org.eclipse.jetty.websocket.client.WebSocketClient;\n+import org.eclipse.smarthome.core.library.types.PercentType;\n+import org.eclipse.smarthome.core.thing.ChannelUID;\n+import org.eclipse.smarthome.core.thing.Thing;\n+import org.eclipse.smarthome.core.thing.ThingStatus;\n+import org.eclipse.smarthome.core.thing.ThingStatusDetail;\n+import org.eclipse.smarthome.core.thing.binding.BaseThingHandler;\n+import org.eclipse.smarthome.core.types.Command;\n+import org.eclipse.smarthome.core.types.RefreshType;\n+import org.openhab.binding.vektiva.internal.config.VektivaSmarwiConfiguration;\n+import org.openhab.binding.vektiva.internal.net.VektivaSmarwiSocket;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.net.URI;\n+import java.util.concurrent.*;\n+\n+import static org.openhab.binding.vektiva.VektivaBindingConstants.*;\n+\n+/**\n+ * The {@link VektivaSmarwiHandler} is responsible for handling commands, which are\n+ * sent to one of the channels.\n+ *\n+ * @author Ondrej Pecta - Initial contribution\n+ */\n+@NonNullByDefault\n+public class VektivaSmarwiHandler extends BaseThingHandler {\n+\n+    private final Logger logger = LoggerFactory.getLogger(VektivaSmarwiHandler.class);\n+\n+    private VektivaSmarwiConfiguration config = new VektivaSmarwiConfiguration();\n+\n+    private final @NonNullByDefault({})\n+    HttpClient httpClient;\n+\n+    private final @NonNullByDefault({})","path":"bundles/org.openhab.binding.vektiva/src/main/java/org/openhab/binding/vektiva/handler/VektivaSmarwiHandler.java","position":56,"original_position":56,"commit_id":"b189a33acd20d752f09a47891238afb6442f955d","original_commit_id":"b189a33acd20d752f09a47891238afb6442f955d","user":{"login":"cweitkamp","id":5131747,"node_id":"MDQ6VXNlcjUxMzE3NDc=","avatar_url":"https://avatars0.githubusercontent.com/u/5131747?v=4","gravatar_id":"","url":"https://api.github.com/users/cweitkamp","html_url":"https://github.com/cweitkamp","followers_url":"https://api.github.com/users/cweitkamp/followers","following_url":"https://api.github.com/users/cweitkamp/following{/other_user}","gists_url":"https://api.github.com/users/cweitkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/cweitkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cweitkamp/subscriptions","organizations_url":"https://api.github.com/users/cweitkamp/orgs","repos_url":"https://api.github.com/users/cweitkamp/repos","events_url":"https://api.github.com/users/cweitkamp/events{/privacy}","received_events_url":"https://api.github.com/users/cweitkamp/received_events","type":"User","site_admin":false},"body":"Wrong annotation. As they are final you can omit the `@NonNullByDefault({})`.","created_at":"2019-07-02T07:45:57Z","updated_at":"2019-07-02T07:57:29Z","html_url":"https://github.com/openhab/openhab2-addons/pull/4626#discussion_r299344087","pull_request_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/299344087"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/4626#discussion_r299344087"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626","id":246043934,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQ2MDQzOTM0","html_url":"https://github.com/openhab/openhab2-addons/pull/4626","diff_url":"https://github.com/openhab/openhab2-addons/pull/4626.diff","patch_url":"https://github.com/openhab/openhab2-addons/pull/4626.patch","issue_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/4626","number":4626,"state":"open","locked":false,"title":"[vektiva] Vektiva Binding initial contribution","user":{"login":"octa22","id":20907895,"node_id":"MDQ6VXNlcjIwOTA3ODk1","avatar_url":"https://avatars3.githubusercontent.com/u/20907895?v=4","gravatar_id":"","url":"https://api.github.com/users/octa22","html_url":"https://github.com/octa22","followers_url":"https://api.github.com/users/octa22/followers","following_url":"https://api.github.com/users/octa22/following{/other_user}","gists_url":"https://api.github.com/users/octa22/gists{/gist_id}","starred_url":"https://api.github.com/users/octa22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octa22/subscriptions","organizations_url":"https://api.github.com/users/octa22/orgs","repos_url":"https://api.github.com/users/octa22/repos","events_url":"https://api.github.com/users/octa22/events{/privacy}","received_events_url":"https://api.github.com/users/octa22/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Ondrej Pecta <opecta@gmail.com>\r\n\r\nThis is the initial binding for the Vektiva devices.\r\n\r\nCurrently only Smarwi product is supported (https://vektiva.com/en/shop/smarwi)\r\n\r\nPlease see this thread for more info:\r\nhttps://community.openhab.org/t/vektiva-binding-smarwi-support/64476","created_at":"2019-01-19T12:16:31Z","updated_at":"2019-07-02T07:57:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"784c3e26d8e648a8acb646860530153cc5eebe87","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":159935827,"node_id":"MDU6TGFiZWwxNTk5MzU4Mjc=","url":"https://api.github.com/repos/openhab/openhab2-addons/labels/new%20binding","name":"new binding","color":"5319e7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/4626/comments","statuses_url":"https://api.github.com/repos/openhab/openhab2-addons/statuses/b189a33acd20d752f09a47891238afb6442f955d","head":{"label":"octa22:vektiva-binding","ref":"vektiva-binding","sha":"b189a33acd20d752f09a47891238afb6442f955d","user":{"login":"octa22","id":20907895,"node_id":"MDQ6VXNlcjIwOTA3ODk1","avatar_url":"https://avatars3.githubusercontent.com/u/20907895?v=4","gravatar_id":"","url":"https://api.github.com/users/octa22","html_url":"https://github.com/octa22","followers_url":"https://api.github.com/users/octa22/followers","following_url":"https://api.github.com/users/octa22/following{/other_user}","gists_url":"https://api.github.com/users/octa22/gists{/gist_id}","starred_url":"https://api.github.com/users/octa22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octa22/subscriptions","organizations_url":"https://api.github.com/users/octa22/orgs","repos_url":"https://api.github.com/users/octa22/repos","events_url":"https://api.github.com/users/octa22/events{/privacy}","received_events_url":"https://api.github.com/users/octa22/received_events","type":"User","site_admin":false},"repo":{"id":97257842,"node_id":"MDEwOlJlcG9zaXRvcnk5NzI1Nzg0Mg==","name":"openhab2-addons","full_name":"octa22/openhab2-addons","private":false,"owner":{"login":"octa22","id":20907895,"node_id":"MDQ6VXNlcjIwOTA3ODk1","avatar_url":"https://avatars3.githubusercontent.com/u/20907895?v=4","gravatar_id":"","url":"https://api.github.com/users/octa22","html_url":"https://github.com/octa22","followers_url":"https://api.github.com/users/octa22/followers","following_url":"https://api.github.com/users/octa22/following{/other_user}","gists_url":"https://api.github.com/users/octa22/gists{/gist_id}","starred_url":"https://api.github.com/users/octa22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octa22/subscriptions","organizations_url":"https://api.github.com/users/octa22/orgs","repos_url":"https://api.github.com/users/octa22/repos","events_url":"https://api.github.com/users/octa22/events{/privacy}","received_events_url":"https://api.github.com/users/octa22/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octa22/openhab2-addons","description":"Add-ons for openHAB 2.x","fork":true,"url":"https://api.github.com/repos/octa22/openhab2-addons","forks_url":"https://api.github.com/repos/octa22/openhab2-addons/forks","keys_url":"https://api.github.com/repos/octa22/openhab2-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octa22/openhab2-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octa22/openhab2-addons/teams","hooks_url":"https://api.github.com/repos/octa22/openhab2-addons/hooks","issue_events_url":"https://api.github.com/repos/octa22/openhab2-addons/issues/events{/number}","events_url":"https://api.github.com/repos/octa22/openhab2-addons/events","assignees_url":"https://api.github.com/repos/octa22/openhab2-addons/assignees{/user}","branches_url":"https://api.github.com/repos/octa22/openhab2-addons/branches{/branch}","tags_url":"https://api.github.com/repos/octa22/openhab2-addons/tags","blobs_url":"https://api.github.com/repos/octa22/openhab2-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octa22/openhab2-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octa22/openhab2-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/octa22/openhab2-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octa22/openhab2-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/octa22/openhab2-addons/languages","stargazers_url":"https://api.github.com/repos/octa22/openhab2-addons/stargazers","contributors_url":"https://api.github.com/repos/octa22/openhab2-addons/contributors","subscribers_url":"https://api.github.com/repos/octa22/openhab2-addons/subscribers","subscription_url":"https://api.github.com/repos/octa22/openhab2-addons/subscription","commits_url":"https://api.github.com/repos/octa22/openhab2-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/octa22/openhab2-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/octa22/openhab2-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/octa22/openhab2-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/octa22/openhab2-addons/contents/{+path}","compare_url":"https://api.github.com/repos/octa22/openhab2-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octa22/openhab2-addons/merges","archive_url":"https://api.github.com/repos/octa22/openhab2-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octa22/openhab2-addons/downloads","issues_url":"https://api.github.com/repos/octa22/openhab2-addons/issues{/number}","pulls_url":"https://api.github.com/repos/octa22/openhab2-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/octa22/openhab2-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/octa22/openhab2-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octa22/openhab2-addons/labels{/name}","releases_url":"https://api.github.com/repos/octa22/openhab2-addons/releases{/id}","deployments_url":"https://api.github.com/repos/octa22/openhab2-addons/deployments","created_at":"2017-07-14T17:29:11Z","updated_at":"2019-06-01T17:34:52Z","pushed_at":"2019-07-02T07:52:18Z","git_url":"git://github.com/octa22/openhab2-addons.git","ssh_url":"git@github.com:octa22/openhab2-addons.git","clone_url":"https://github.com/octa22/openhab2-addons.git","svn_url":"https://github.com/octa22/openhab2-addons","homepage":"","size":354874,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":7,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"openhab:master","ref":"master","sha":"3342b107cf07ac6072668a3dc0f4290224bb87cb","user":{"login":"openhab","id":1007353,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDczNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1007353?v=4","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":19753195,"node_id":"MDEwOlJlcG9zaXRvcnkxOTc1MzE5NQ==","name":"openhab2-addons","full_name":"openhab/openhab2-addons","private":false,"owner":{"login":"openhab","id":1007353,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDczNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1007353?v=4","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openhab/openhab2-addons","description":"Add-ons for openHAB 2.x","fork":false,"url":"https://api.github.com/repos/openhab/openhab2-addons","forks_url":"https://api.github.com/repos/openhab/openhab2-addons/forks","keys_url":"https://api.github.com/repos/openhab/openhab2-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab2-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab2-addons/teams","hooks_url":"https://api.github.com/repos/openhab/openhab2-addons/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab2-addons/events","assignees_url":"https://api.github.com/repos/openhab/openhab2-addons/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab2-addons/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab2-addons/tags","blobs_url":"https://api.github.com/repos/openhab/openhab2-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab2-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab2-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab2-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab2-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab2-addons/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab2-addons/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab2-addons/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab2-addons/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab2-addons/subscription","commits_url":"https://api.github.com/repos/openhab/openhab2-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab2-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab2-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab2-addons/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab2-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab2-addons/merges","archive_url":"https://api.github.com/repos/openhab/openhab2-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab2-addons/downloads","issues_url":"https://api.github.com/repos/openhab/openhab2-addons/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab2-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab2-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab2-addons/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab2-addons/releases{/id}","deployments_url":"https://api.github.com/repos/openhab/openhab2-addons/deployments","created_at":"2014-05-13T19:41:58Z","updated_at":"2019-07-01T22:39:18Z","pushed_at":"2019-07-02T06:24:44Z","git_url":"git://github.com/openhab/openhab2-addons.git","ssh_url":"git@github.com:openhab/openhab2-addons.git","clone_url":"https://github.com/openhab/openhab2-addons.git","svn_url":"https://github.com/openhab/openhab2-addons","homepage":"","size":356102,"stargazers_count":1146,"watchers_count":1146,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2029,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":463,"license":{"key":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":2029,"open_issues":463,"watchers":1146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/4626"},"issue":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/4626"},"comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/4626/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/4626/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab2-addons/statuses/b189a33acd20d752f09a47891238afb6442f955d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cweitkamp"}}