{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/1936","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/1936/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/1936/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/1936/events","html_url":"https://github.com/eclipse/smarthome/pull/1936","id":168129859,"number":1936,"title":"Feature/triggers","user":{"login":"phxql","id":700033,"avatar_url":"https://avatars.githubusercontent.com/u/700033?v=3","gravatar_id":"","url":"https://api.github.com/users/phxql","html_url":"https://github.com/phxql","followers_url":"https://api.github.com/users/phxql/followers","following_url":"https://api.github.com/users/phxql/following{/other_user}","gists_url":"https://api.github.com/users/phxql/gists{/gist_id}","starred_url":"https://api.github.com/users/phxql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phxql/subscriptions","organizations_url":"https://api.github.com/users/phxql/orgs","repos_url":"https://api.github.com/users/phxql/repos","events_url":"https://api.github.com/users/phxql/events{/privacy}","received_events_url":"https://api.github.com/users/phxql/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-28T15:47:47Z","updated_at":"2016-08-26T11:11:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/1936","html_url":"https://github.com/eclipse/smarthome/pull/1936","diff_url":"https://github.com/eclipse/smarthome/pull/1936.diff","patch_url":"https://github.com/eclipse/smarthome/pull/1936.patch"},"body":"This PR implements a PoC for triggers.\r\n\r\nSample XML snippet:\r\n\r\n```xml\r\n \t<channel-type id=\"trigger_1\" advanced=\"false\">\r\n\t\t<trigger-type>String</trigger-type>\r\n\t\t<label>Trigger 1</label>\r\n\t\t<description>Description of trigger 1</description>\r\n\t\t<event>\r\n\t\t\t<options>\r\n\t\t\t\t<option value=\"PRESSED\">pressed</option>\r\n\t\t\t\t<option value=\"RELEASED\">released</option>\r\n\t\t\t\t<option value=\"DOUBLE_PRESSED\">double pressed</option>\r\n\t\t\t</options>\r\n\t\t</event>\r\n\t</channel-type>\r\n```\r\n\r\nIn the handler:\r\n\r\n```java\r\nemitEvent(TRIGGER_1, new StringType(\"PRESSED\"));\r\n```\r\n\r\nIn the rule engine DSL:\r\n\r\n```\r\nrule \"Test the trigger\"\r\nwhen\r\n  Channel 'triggertest:sample:9c9a498d:trigger_1' triggered PRESSED\r\nthen\r\n  DemoString.postUpdate(\"Triggered: \" + receivedEvent.event)\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/242704675","html_url":"https://github.com/eclipse/smarthome/pull/1936#issuecomment-242704675","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/1936","id":242704675,"user":{"login":"maggu2810","id":204670,"avatar_url":"https://avatars.githubusercontent.com/u/204670?v=3","gravatar_id":"","url":"https://api.github.com/users/maggu2810","html_url":"https://github.com/maggu2810","followers_url":"https://api.github.com/users/maggu2810/followers","following_url":"https://api.github.com/users/maggu2810/following{/other_user}","gists_url":"https://api.github.com/users/maggu2810/gists{/gist_id}","starred_url":"https://api.github.com/users/maggu2810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggu2810/subscriptions","organizations_url":"https://api.github.com/users/maggu2810/orgs","repos_url":"https://api.github.com/users/maggu2810/repos","events_url":"https://api.github.com/users/maggu2810/events{/privacy}","received_events_url":"https://api.github.com/users/maggu2810/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T11:11:23Z","updated_at":"2016-08-26T11:11:23Z","body":"@sjka Sure, it is already placed somewhere in my PriorityQueue :wink: "}}
{"actor":{"display_login":"maggu2810"}}