{"action":"created","issue":{"url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/18","labels_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/18/comments","events_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/18/events","html_url":"https://github.com/snowdd1/homebridge-knx/issues/18","id":118370268,"number":18,"title":"Data conversion on the fly","user":{"login":"gjniewenhuijse","id":1484623,"avatar_url":"https://avatars.githubusercontent.com/u/1484623?v=3","gravatar_id":"","url":"https://api.github.com/users/gjniewenhuijse","html_url":"https://github.com/gjniewenhuijse","followers_url":"https://api.github.com/users/gjniewenhuijse/followers","following_url":"https://api.github.com/users/gjniewenhuijse/following{/other_user}","gists_url":"https://api.github.com/users/gjniewenhuijse/gists{/gist_id}","starred_url":"https://api.github.com/users/gjniewenhuijse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjniewenhuijse/subscriptions","organizations_url":"https://api.github.com/users/gjniewenhuijse/orgs","repos_url":"https://api.github.com/users/gjniewenhuijse/repos","events_url":"https://api.github.com/users/gjniewenhuijse/events{/privacy}","received_events_url":"https://api.github.com/users/gjniewenhuijse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T12:26:33Z","updated_at":"2015-11-24T14:16:24Z","closed_at":null,"body":"Is it possible to do a data conversion on the fly?\r\n\r\nI have a knx garagedoor DPT1: \r\n0 = closed\r\n1 = open\r\n\r\nBut the default is DPT5:\r\n0 = open\r\n1 = closed\r\nwhen i add a \"R\" after the address, the data is converted to 255,254.. But i want 1 or 0.\r\n\r\n```\r\n{\r\n\t\t\t\t\t\"accessory_type\": \"knxdevice\",\r\n\t\t\t\t\t\"description\": \"sample garage door opener\",\r\n\t\t\t\t\t\"name\": \"Garagedeur\",\r\n\t\t\t\t\t\"services\": [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\"type\": \"GarageDoorOpener\",\r\n\t\t\t\t\t\t\t\"name\": \"Garagedeur\",\r\n\t\t\t\t\t\t\t\"CurrentDoorState\": {\r\n                                \"Listen\": [\"10/1/4\"]\r\n                            },\r\n\t\t\t\t\t\t\t\"TargetDoorState\": {\r\n\t\t\t\t\t\t\t\t\"Set\": \"10/1/3\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/comments/159279406","html_url":"https://github.com/snowdd1/homebridge-knx/issues/18#issuecomment-159279406","issue_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/18","id":159279406,"user":{"login":"snowdd1","id":11786396,"avatar_url":"https://avatars.githubusercontent.com/u/11786396?v=3","gravatar_id":"","url":"https://api.github.com/users/snowdd1","html_url":"https://github.com/snowdd1","followers_url":"https://api.github.com/users/snowdd1/followers","following_url":"https://api.github.com/users/snowdd1/following{/other_user}","gists_url":"https://api.github.com/users/snowdd1/gists{/gist_id}","starred_url":"https://api.github.com/users/snowdd1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowdd1/subscriptions","organizations_url":"https://api.github.com/users/snowdd1/orgs","repos_url":"https://api.github.com/users/snowdd1/repos","events_url":"https://api.github.com/users/snowdd1/events{/privacy}","received_events_url":"https://api.github.com/users/snowdd1/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T14:16:24Z","updated_at":"2015-11-24T14:16:24Z","body":"Not yet. The problem is that the garagedooropener uses values 0..4, and that requires at least a byte value.\r\nI have thought about being able to allow individual mappings, but have no working concept yet.\r\nIf you have some other logic module on the bus, you might do the mapping there in the meantime; and use a new group address for homekit."}}