{"action":"created","issue":{"url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/47","repository_url":"https://api.github.com/repos/snowdd1/homebridge-knx","labels_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/47/comments","events_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/47/events","html_url":"https://github.com/snowdd1/homebridge-knx/issues/47","id":184016425,"number":47,"title":"Brightness is set when switching on a lightbulb","user":{"login":"gkuehn001","id":22379121,"avatar_url":"https://avatars.githubusercontent.com/u/22379121?v=3","gravatar_id":"","url":"https://api.github.com/users/gkuehn001","html_url":"https://github.com/gkuehn001","followers_url":"https://api.github.com/users/gkuehn001/followers","following_url":"https://api.github.com/users/gkuehn001/following{/other_user}","gists_url":"https://api.github.com/users/gkuehn001/gists{/gist_id}","starred_url":"https://api.github.com/users/gkuehn001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkuehn001/subscriptions","organizations_url":"https://api.github.com/users/gkuehn001/orgs","repos_url":"https://api.github.com/users/gkuehn001/repos","events_url":"https://api.github.com/users/gkuehn001/events{/privacy}","received_events_url":"https://api.github.com/users/gkuehn001/received_events","type":"User","site_admin":false},"labels":[{"id":472408497,"url":"https://api.github.com/repos/snowdd1/homebridge-knx/labels/Apple%20Bug","name":"Apple Bug","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-19T16:48:19Z","updated_at":"2016-11-04T19:54:58Z","closed_at":null,"body":"Hi!\n\nI'm running homebridge-knx on a Raspberry Pi 3 and I configured a \"Lightbulb\" with an On and a Brightness parameter.\n\nThe accessory configuration:\n\n``` json\n {\n    \"type\": \"Lightbulb\",\n    \"description\": \"iOS8 Lightbulb type, supports On (Switch) and Brightness\",\n    \"name\": \"Wo DL rechts\",\n    \"On\": {\n      \"Set\": \"6/0/13\",\n      \"Listen\": [\"6/0/13\"]\n     },\n     \"Brightness\": {\n         \"Set\": \"6/0/15\",\n         \"Listen\": [\"6/0/15\"]\n     }\n }\n```\n\nI connect to homebridge with an iPhone 6s via HomeKit. I can now switch on and off the light and I can set the brightness. **BUT**:\nWhen I switch on the light, the value is set to 100%. This is not really what I want, because my dimming device (the actual hardware) is configured to set the value to the value when I switched it off the last time. This is now overwritten by the HomeKit/Homebridge-knx combo.\n\nWhen I start homebridge in Debug mode I can see this when I switch on the light:\n\n``` bash\n[10/19/2016, 4:12:58 PM] [KNX] knx data sent: Value 1 for GA 6/0/13\n[10/19/2016, 4:12:58 PM] [KNX] knx data sent: Value 255 for GA 6/0/15\n```\n\nSo here we see the problem. Immediately after switching ON the the device with \"1\" the Brightness is set to 255 (100%). \n\nOn the other hand, when I switch off the light, this is log output.\n\n``` bash\n[10/19/2016, 4:15:11 PM] [KNX] knx data sent: Value 0 for GA 6/0/13\n```\n\nFine. It is simply switched off (without setting the Brightness value to 0%). This is what I want.\n\nIt would be great that when I switch on the light, it is just switched on **without setting the Brightness**.\n\nI don't exactly know where the problem comes from. If it is the iPhone that sends the command, or the HAP-Server (which is used by the homebridge module), or if it is the homebridge module itself or if its done by the homebridge-knx module. \n\n**Is this possible if I change the configuration?**\n"},"comment":{"url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/comments/258531758","html_url":"https://github.com/snowdd1/homebridge-knx/issues/47#issuecomment-258531758","issue_url":"https://api.github.com/repos/snowdd1/homebridge-knx/issues/47","id":258531758,"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":"2016-11-04T19:54:58Z","updated_at":"2016-11-04T19:54:58Z","body":"In theory you are right, but I am not sure what the priority for home at Apple is - and how other light actuators (especially those with MFI certification) are supposed to work."}}
{"actor":{"display_login":"snowdd1"}}