{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/94403082","pull_request_review_id":14925275,"id":94403082,"diff_hunk":"@@ -0,0 +1,168 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+<thing:thing-descriptions bindingId=\"zoneminder\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n+    xmlns:thing=\"http://eclipse.org/smarthome/schemas/thing-description/v1.0.0\"\n+    xsi:schemaLocation=\"http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd\">\n+\n+    <!-- Supported ZoneMinder devices and features -->\n+    <thing-type id=\"monitor\">\n+        <supported-bridge-type-refs>\n+            <bridge-type-ref id=\"server\" />\n+        </supported-bridge-type-refs>\n+\n+        <label>ZoneMinder Monitor</label>\n+        <description>Camera in ZoneMinder</description>\n+\n+        <channels>\n+            <channel id=\"name\" typeId=\"monitor_name\" />\n+            <channel id=\"enabled\" typeId=\"monitor_enabled\" />\n+            <channel id=\"sourcetype\" typeId=\"monitor_sourcetype\" />\n+            <channel id=\"trigger-event\" typeId=\"monitor_trigger_event\" />\n+            <channel id=\"function\" typeId=\"monitor_function\" />\n+            <channel id=\"is-alive\" typeId=\"monitor_is_alive\" />\n+            <channel id=\"daemon-capture-state\" typeId=\"monitor_zmc_daemon_state\" />\n+            <channel id=\"daemon-capture-statustext\" typeId=\"monitor_zmc_daemon_statustext\" />\n+            <channel id=\"daemon-analysis-state\" typeId=\"monitor_zma_daemon_state\" />\n+            <channel id=\"daemon-analysis-statustext\" typeId=\"monitor_zma_daemon_statustext\" />\n+            <channel id=\"daemon-frame-state\" typeId=\"monitor_zmf_daemon_state\" />\n+            <channel id=\"daemon-frame-statustext\" typeId=\"monitor_zmf_daemon_statustext\" />\n+            \n+        </channels>\n+\n+        <config-description-ref uri=\"thing-type:monitor-channels:config\" />\n+    </thing-type>\n+\n+\n+    <!-- Channel definitions of ZoneMinder Server -->\n+    <channel-type id=\"monitor_id\">\n+        <item-type>String</item-type>\n+        <label>Monitor Id</label>\n+        <description>ZoneMinder Server Id of Monitor</description>\n+        <category>General</category>\n+        <state readOnly=\"true\" />\n+    </channel-type>\n+\n+\n+    <channel-type id=\"monitor_name\">\n+        <item-type>String</item-type>\n+        <label>ZoneMinder Name</label>\n+        <description>Name of Monitor in ZoneMinder Server </description>\n+        <category>General</category>\n+        <state readOnly=\"true\" />\n+    </channel-type>\n+ \n+    <channel-type id=\"monitor_sourcetype\">\n+        <item-type>String</item-type>\n+        <label>Monitor Source Type</label>\n+        <description>Source Type of Monitor in ZoneMinder Server </description>\n+        <category>General</category>\n+        <state readOnly=\"true\" />\n+    </channel-type>\n+           \n+    <channel-type id=\"monitor_is_alive\">\n+        <item-type>Switch</item-type>\n+        <label>Monitor IsAlive</label>\n+        <description>Switch telling if the monitor is alive</description>\n+        <category>Status</category>\n+        <state readOnly=\"true\" />\n+    </channel-type>\n+    <channel-type id=\"monitor_enabled\">\n+        <item-type>Switch</item-type>\n+        <label>Enabled</label>\n+        <description>Showing the value of the checkbox 'enabled' in ZoneMinder for the monitor.</description>\n+        <category>Status</category>\n+        <state readOnly=\"false\" />\n+    </channel-type>\n+\n+    <channel-type id=\"monitor_function\">\n+        <item-type>String</item-type>\n+        <label>Operating mode</label>\n+        <description>Current Monitor Function: None, Monitor, Modect, Record, Mocord, Nodect</description>\n+        <state pattern=\"%s\" readOnly=\"true\">\n+            <options>\n+                <option value=\"none\">None</option>\n+                <option value=\"monitor\">Monitor</option>\n+                <option value=\"modect\">Modect</option>\n+                <option value=\"record\">Record</option>\n+                <option value=\"mocord\">Mocord</option>\n+                <option value=\"nodect\">Nodect</option>\n+            </options>\n+        </state>\n+    </channel-type>\n+\n+    <channel-type id=\"monitor_trigger_event\">\n+        <item-type>Switch</item-type>\n+        <label>Force Alarm</label>\n+        <description>Switch is ON whenever the the monitor is recording, and OFF when the monitor is idle</description>\n+        <category>Trigger</category>\n+        <state readOnly=\"false\" />\n+    </channel-type>\n+    <channel-type id=\"monitor_image_width\">\n+        <item-type>Number</item-type>\n+        <label>Width of recorded image</label>\n+        <description>Width of recorded image</description>\n+        <category>Status</category>\n+        <state readOnly=\"true\" />\n+    </channel-type>\n+    <channel-type id=\"monitor_image_height\">\n+        <item-type>Number</item-type>\n+        <label>Height of recorded image</label>","path":"addons/binding/org.openhab.binding.zoneminder/ESH-INF/thing/monitor-thing.xml","position":108,"original_position":108,"commit_id":"f86ee1d7e9b6ede1613b645f3d3a01fdcef5437e","original_commit_id":"f86ee1d7e9b6ede1613b645f3d3a01fdcef5437e","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"body":"keep label text short, e.g. \"Image height\"","created_at":"2017-01-03T13:19:04Z","updated_at":"2017-01-03T13:46:03Z","html_url":"https://github.com/openhab/openhab2-addons/pull/1376#discussion_r94403082","pull_request_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/comments/94403082"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/1376#discussion_r94403082"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376","id":91879287,"html_url":"https://github.com/openhab/openhab2-addons/pull/1376","diff_url":"https://github.com/openhab/openhab2-addons/pull/1376.diff","patch_url":"https://github.com/openhab/openhab2-addons/pull/1376.patch","issue_url":"https://api.github.com/repos/openhab/openhab2-addons/issues/1376","number":1376,"state":"open","locked":false,"title":"1376 - Initial contribution of ZoneMinder Binding","user":{"login":"Mr-Eskildsen","id":5557371,"avatar_url":"https://avatars.githubusercontent.com/u/5557371?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Eskildsen","html_url":"https://github.com/Mr-Eskildsen","followers_url":"https://api.github.com/users/Mr-Eskildsen/followers","following_url":"https://api.github.com/users/Mr-Eskildsen/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Eskildsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Eskildsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Eskildsen/subscriptions","organizations_url":"https://api.github.com/users/Mr-Eskildsen/orgs","repos_url":"https://api.github.com/users/Mr-Eskildsen/repos","events_url":"https://api.github.com/users/Mr-Eskildsen/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Eskildsen/received_events","type":"User","site_admin":false},"body":"First version of a ZoneMinder Binding . It handles basic operations, eg. trigger zoneminder from OpenHAB, and monitors health status of ZoneMinder Server from OpenHAB.","created_at":"2016-11-01T22:50:42Z","updated_at":"2017-01-03T13:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"373988b1c06dbd604af6a742141e2affae25940a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376/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/1376/comments","statuses_url":"https://api.github.com/repos/openhab/openhab2-addons/statuses/f86ee1d7e9b6ede1613b645f3d3a01fdcef5437e","head":{"label":"Mr-Eskildsen:master","ref":"master","sha":"f86ee1d7e9b6ede1613b645f3d3a01fdcef5437e","user":{"login":"Mr-Eskildsen","id":5557371,"avatar_url":"https://avatars.githubusercontent.com/u/5557371?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Eskildsen","html_url":"https://github.com/Mr-Eskildsen","followers_url":"https://api.github.com/users/Mr-Eskildsen/followers","following_url":"https://api.github.com/users/Mr-Eskildsen/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Eskildsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Eskildsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Eskildsen/subscriptions","organizations_url":"https://api.github.com/users/Mr-Eskildsen/orgs","repos_url":"https://api.github.com/users/Mr-Eskildsen/repos","events_url":"https://api.github.com/users/Mr-Eskildsen/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Eskildsen/received_events","type":"User","site_admin":false},"repo":{"id":71587130,"name":"openhab2-addons","full_name":"Mr-Eskildsen/openhab2-addons","owner":{"login":"Mr-Eskildsen","id":5557371,"avatar_url":"https://avatars.githubusercontent.com/u/5557371?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Eskildsen","html_url":"https://github.com/Mr-Eskildsen","followers_url":"https://api.github.com/users/Mr-Eskildsen/followers","following_url":"https://api.github.com/users/Mr-Eskildsen/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Eskildsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Eskildsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Eskildsen/subscriptions","organizations_url":"https://api.github.com/users/Mr-Eskildsen/orgs","repos_url":"https://api.github.com/users/Mr-Eskildsen/repos","events_url":"https://api.github.com/users/Mr-Eskildsen/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Eskildsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mr-Eskildsen/openhab2-addons","description":"The next-generation open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons","forks_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/forks","keys_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/teams","hooks_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/hooks","issue_events_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/issues/events{/number}","events_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/events","assignees_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/assignees{/user}","branches_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/branches{/branch}","tags_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/tags","blobs_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/statuses/{sha}","languages_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/languages","stargazers_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/stargazers","contributors_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/contributors","subscribers_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/subscribers","subscription_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/subscription","commits_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/contents/{+path}","compare_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/merges","archive_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/downloads","issues_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/issues{/number}","pulls_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/pulls{/number}","milestones_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/milestones{/number}","notifications_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/labels{/name}","releases_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/releases{/id}","deployments_url":"https://api.github.com/repos/Mr-Eskildsen/openhab2-addons/deployments","created_at":"2016-10-21T18:13:10Z","updated_at":"2016-11-07T08:03:23Z","pushed_at":"2017-01-02T14:18:38Z","git_url":"git://github.com/Mr-Eskildsen/openhab2-addons.git","ssh_url":"git@github.com:Mr-Eskildsen/openhab2-addons.git","clone_url":"https://github.com/Mr-Eskildsen/openhab2-addons.git","svn_url":"https://github.com/Mr-Eskildsen/openhab2-addons","homepage":null,"size":58324,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"openhab:master","ref":"master","sha":"e2019c2a1a2df030c4b9b656d6399323333f8d82","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","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,"name":"openhab2-addons","full_name":"openhab/openhab2-addons","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","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},"private":false,"html_url":"https://github.com/openhab/openhab2-addons","description":"The next-generation open Home Automation Bus (openHAB)","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":"2017-01-02T20:01:43Z","pushed_at":"2017-01-03T12:04:32Z","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":null,"size":62708,"stargazers_count":465,"watchers_count":465,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":743,"mirror_url":null,"open_issues_count":190,"forks":743,"open_issues":190,"watchers":465,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376"},"html":{"href":"https://github.com/openhab/openhab2-addons/pull/1376"},"issue":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/1376"},"comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/issues/1376/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab2-addons/pulls/1376/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/1376/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab2-addons/statuses/f86ee1d7e9b6ede1613b645f3d3a01fdcef5437e"}}}}
{"actor":{"display_login":"kaikreuzer"}}