{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab/issues/2098","repository_url":"https://api.github.com/repos/openhab/openhab","labels_url":"https://api.github.com/repos/openhab/openhab/issues/2098/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab/issues/2098/comments","events_url":"https://api.github.com/repos/openhab/openhab/issues/2098/events","html_url":"https://github.com/openhab/openhab/issues/2098","id":57029184,"number":2098,"title":"PLCBus house code / unit code addressing bug ","user":{"login":"renescherer","id":10923256,"avatar_url":"https://avatars.githubusercontent.com/u/10923256?v=3","gravatar_id":"","url":"https://api.github.com/users/renescherer","html_url":"https://github.com/renescherer","followers_url":"https://api.github.com/users/renescherer/followers","following_url":"https://api.github.com/users/renescherer/following{/other_user}","gists_url":"https://api.github.com/users/renescherer/gists{/gist_id}","starred_url":"https://api.github.com/users/renescherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renescherer/subscriptions","organizations_url":"https://api.github.com/users/renescherer/orgs","repos_url":"https://api.github.com/users/renescherer/repos","events_url":"https://api.github.com/users/renescherer/events{/privacy}","received_events_url":"https://api.github.com/users/renescherer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openhab/openhab/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-09T13:18:42Z","updated_at":"2016-03-21T08:07:07Z","closed_at":"2016-03-21T08:07:07Z","body":"The 1.6.2 version of the PLCBus binding has a bug in the way house codes and unit codes are packed into a single byte. The 4 bit house code has to be packed into the 4 most significant bits of the address byte.\r\nAt the moment the code only works for devices in house code A.\r\n\r\n\r\nThe 2 lines which need changing are 128 and 145 in DataFrame.java:\r\nLine 128: result.add(Convert.toByte((home << 4) | unit));\r\nLine 145: home = data[1] >>> 4;\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab/issues/comments/199165833","html_url":"https://github.com/openhab/openhab/issues/2098#issuecomment-199165833","issue_url":"https://api.github.com/repos/openhab/openhab/issues/2098","id":199165833,"user":{"login":"teichsta","id":2108636,"avatar_url":"https://avatars.githubusercontent.com/u/2108636?v=3","gravatar_id":"","url":"https://api.github.com/users/teichsta","html_url":"https://github.com/teichsta","followers_url":"https://api.github.com/users/teichsta/followers","following_url":"https://api.github.com/users/teichsta/following{/other_user}","gists_url":"https://api.github.com/users/teichsta/gists{/gist_id}","starred_url":"https://api.github.com/users/teichsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teichsta/subscriptions","organizations_url":"https://api.github.com/users/teichsta/orgs","repos_url":"https://api.github.com/users/teichsta/repos","events_url":"https://api.github.com/users/teichsta/events{/privacy}","received_events_url":"https://api.github.com/users/teichsta/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T08:07:07Z","updated_at":"2016-03-21T08:07:07Z","body":"#4197 has been merged into master and 1.8"}}