{"action":"opened","number":4625,"pull_request":{"url":"https://api.github.com/repos/openhab/openhab/pulls/4625","id":84170448,"html_url":"https://github.com/openhab/openhab/pull/4625","diff_url":"https://github.com/openhab/openhab/pull/4625.diff","patch_url":"https://github.com/openhab/openhab/pull/4625.patch","issue_url":"https://api.github.com/repos/openhab/openhab/issues/4625","number":4625,"state":"open","locked":false,"title":"Add option to send plain literals messages.","user":{"login":"ppt000","id":8686486,"avatar_url":"https://avatars.githubusercontent.com/u/8686486?v=3","gravatar_id":"","url":"https://api.github.com/users/ppt000","html_url":"https://github.com/ppt000","followers_url":"https://api.github.com/users/ppt000/followers","following_url":"https://api.github.com/users/ppt000/following{/other_user}","gists_url":"https://api.github.com/users/ppt000/gists{/gist_id}","starred_url":"https://api.github.com/users/ppt000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppt000/subscriptions","organizations_url":"https://api.github.com/users/ppt000/orgs","repos_url":"https://api.github.com/users/ppt000/repos","events_url":"https://api.github.com/users/ppt000/events{/privacy}","received_events_url":"https://api.github.com/users/ppt000/received_events","type":"User","site_admin":false},"body":"The TCP binding does not allow to send plain literal strings straight from the item declaration <transformationrule> (the 4th argument in brackets), but forces to go through transformations.\r\nA simple way to achieve that without changing the code much is to treat an 'empty' transformation to pass the argument directly as the response: instead of \"MAP(my.device.map)\" or \"REGEX((.*))\" for example, just type \"(1234ABC)\" to send the string 1234ABC. The parenthesis are needed to match the pattern tested before, otherwise some more code needs to changed. Also we can assume that no transformation rule will ever be named with an empty string, but it still matches the pattern.","created_at":"2016-09-06T18:16:23Z","updated_at":"2016-09-06T18:16:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openhab/openhab/pulls/4625/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab/pulls/4625/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/4625/comments","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/1d964c56a2afc835fa0f33d6781197c3b0f66f5f","head":{"label":"ppt000:patch-1","ref":"patch-1","sha":"1d964c56a2afc835fa0f33d6781197c3b0f66f5f","user":{"login":"ppt000","id":8686486,"avatar_url":"https://avatars.githubusercontent.com/u/8686486?v=3","gravatar_id":"","url":"https://api.github.com/users/ppt000","html_url":"https://github.com/ppt000","followers_url":"https://api.github.com/users/ppt000/followers","following_url":"https://api.github.com/users/ppt000/following{/other_user}","gists_url":"https://api.github.com/users/ppt000/gists{/gist_id}","starred_url":"https://api.github.com/users/ppt000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppt000/subscriptions","organizations_url":"https://api.github.com/users/ppt000/orgs","repos_url":"https://api.github.com/users/ppt000/repos","events_url":"https://api.github.com/users/ppt000/events{/privacy}","received_events_url":"https://api.github.com/users/ppt000/received_events","type":"User","site_admin":false},"repo":{"id":67523683,"name":"openhab","full_name":"ppt000/openhab","owner":{"login":"ppt000","id":8686486,"avatar_url":"https://avatars.githubusercontent.com/u/8686486?v=3","gravatar_id":"","url":"https://api.github.com/users/ppt000","html_url":"https://github.com/ppt000","followers_url":"https://api.github.com/users/ppt000/followers","following_url":"https://api.github.com/users/ppt000/following{/other_user}","gists_url":"https://api.github.com/users/ppt000/gists{/gist_id}","starred_url":"https://api.github.com/users/ppt000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppt000/subscriptions","organizations_url":"https://api.github.com/users/ppt000/orgs","repos_url":"https://api.github.com/users/ppt000/repos","events_url":"https://api.github.com/users/ppt000/events{/privacy}","received_events_url":"https://api.github.com/users/ppt000/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppt000/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/ppt000/openhab","forks_url":"https://api.github.com/repos/ppt000/openhab/forks","keys_url":"https://api.github.com/repos/ppt000/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppt000/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppt000/openhab/teams","hooks_url":"https://api.github.com/repos/ppt000/openhab/hooks","issue_events_url":"https://api.github.com/repos/ppt000/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/ppt000/openhab/events","assignees_url":"https://api.github.com/repos/ppt000/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/ppt000/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/ppt000/openhab/tags","blobs_url":"https://api.github.com/repos/ppt000/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppt000/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppt000/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppt000/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppt000/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/ppt000/openhab/languages","stargazers_url":"https://api.github.com/repos/ppt000/openhab/stargazers","contributors_url":"https://api.github.com/repos/ppt000/openhab/contributors","subscribers_url":"https://api.github.com/repos/ppt000/openhab/subscribers","subscription_url":"https://api.github.com/repos/ppt000/openhab/subscription","commits_url":"https://api.github.com/repos/ppt000/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppt000/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppt000/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppt000/openhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppt000/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/ppt000/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppt000/openhab/merges","archive_url":"https://api.github.com/repos/ppt000/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppt000/openhab/downloads","issues_url":"https://api.github.com/repos/ppt000/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/ppt000/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/ppt000/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/ppt000/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppt000/openhab/labels{/name}","releases_url":"https://api.github.com/repos/ppt000/openhab/releases{/id}","deployments_url":"https://api.github.com/repos/ppt000/openhab/deployments","created_at":"2016-09-06T15:59:58Z","updated_at":"2016-09-06T16:00:13Z","pushed_at":"2016-09-06T16:17:00Z","git_url":"git://github.com/ppt000/openhab.git","ssh_url":"git@github.com:ppt000/openhab.git","clone_url":"https://github.com/ppt000/openhab.git","svn_url":"https://github.com/ppt000/openhab","homepage":null,"size":202919,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openhab:master","ref":"master","sha":"bad54e6f1a0fed3fdb6ed634f5bc3f03523d3bb2","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":12983151,"name":"openhab","full_name":"openhab/openhab","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/openhab","description":"Source code of the open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab","forks_url":"https://api.github.com/repos/openhab/openhab/forks","keys_url":"https://api.github.com/repos/openhab/openhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab/teams","hooks_url":"https://api.github.com/repos/openhab/openhab/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab/events","assignees_url":"https://api.github.com/repos/openhab/openhab/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab/tags","blobs_url":"https://api.github.com/repos/openhab/openhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab/subscription","commits_url":"https://api.github.com/repos/openhab/openhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab/merges","archive_url":"https://api.github.com/repos/openhab/openhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab/downloads","issues_url":"https://api.github.com/repos/openhab/openhab/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab/releases{/id}","deployments_url":"https://api.github.com/repos/openhab/openhab/deployments","created_at":"2013-09-20T20:28:43Z","updated_at":"2016-09-06T14:59:26Z","pushed_at":"2016-09-06T18:16:23Z","git_url":"git://github.com/openhab/openhab.git","ssh_url":"git@github.com:openhab/openhab.git","clone_url":"https://github.com/openhab/openhab.git","svn_url":"https://github.com/openhab/openhab","homepage":null,"size":298564,"stargazers_count":2968,"watchers_count":2968,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1435,"mirror_url":null,"open_issues_count":339,"forks":1435,"open_issues":339,"watchers":2968,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4625"},"html":{"href":"https://github.com/openhab/openhab/pull/4625"},"issue":{"href":"https://api.github.com/repos/openhab/openhab/issues/4625"},"comments":{"href":"https://api.github.com/repos/openhab/openhab/issues/4625/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4625/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab/pulls/4625/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab/statuses/1d964c56a2afc835fa0f33d6781197c3b0f66f5f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"ppt000"}}