{"action":"closed","issue":{"url":"https://api.github.com/repos/ikalchev/HAP-python/issues/35","repository_url":"https://api.github.com/repos/ikalchev/HAP-python","labels_url":"https://api.github.com/repos/ikalchev/HAP-python/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ikalchev/HAP-python/issues/35/comments","events_url":"https://api.github.com/repos/ikalchev/HAP-python/issues/35/events","html_url":"https://github.com/ikalchev/HAP-python/issues/35","id":297987765,"node_id":"MDU6SXNzdWUyOTc5ODc3NjU=","number":35,"title":"Garage Door Opener","user":{"login":"jslay88","id":6158929,"node_id":"MDQ6VXNlcjYxNTg5Mjk=","avatar_url":"https://avatars1.githubusercontent.com/u/6158929?v=4","gravatar_id":"","url":"https://api.github.com/users/jslay88","html_url":"https://github.com/jslay88","followers_url":"https://api.github.com/users/jslay88/followers","following_url":"https://api.github.com/users/jslay88/following{/other_user}","gists_url":"https://api.github.com/users/jslay88/gists{/gist_id}","starred_url":"https://api.github.com/users/jslay88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jslay88/subscriptions","organizations_url":"https://api.github.com/users/jslay88/orgs","repos_url":"https://api.github.com/users/jslay88/repos","events_url":"https://api.github.com/users/jslay88/events{/privacy}","received_events_url":"https://api.github.com/users/jslay88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-17T07:56:58Z","updated_at":"2018-10-04T07:11:58Z","closed_at":"2018-10-04T07:11:57Z","author_association":"CONTRIBUTOR","body":"Trying to get this working, and it works for the HomeKit requests, but not when the door state changes outside of HomeKit (i.e. when I open the garage with my car remote, instead of HomeKit).\r\n\r\nWould like some help troubleshooting this. I am getting the opposite transition state than you would expect, only when the door state changes outside of a HomeKit request from an iOS device.\r\n\r\nYou can easily simulate this on a RPi, by shorting out a GPIO pin to ground for a `CLOSED` state, and removing from ground for an `OPEN` state. On the iOS, device you can request open, then simulate open, and so forth.\r\n\r\nTo repro the issue I am having, simply simulate the opposite state of the door, without requesting it from HAP-python.\r\n\r\nAlso, would like some clarification on how to properly set the initial state of `CurrentDoorState`, as I was seeing some weird things there too, like starting out as `Opening`, even though it was clearly set to `CLOSED`\r\n\r\nHere is a simple driver, using pin 17 (BCM)/ 11(BOARD) for the switch, using the new QR stuff of course ;)\r\n\r\n```\r\nfrom pyhap.accessories.GarageDoor import GarageDoor\r\nfrom pyhap.accessory_driver import AccessoryDriver\r\nimport signal\r\n\r\n\r\ngarage = GarageDoor(2, 17, 'GarageDoorTest', pincode=b'920-54-727')\r\nprint(garage.display_name)\r\nprint(garage.pincode.decode())\r\ngarage.print_qr()\r\ndriver = AccessoryDriver(garage, port=51826)\r\nsignal.signal(signal.SIGINT, driver.signal_handler)\r\nsignal.signal(signal.SIGTERM, driver.signal_handler)\r\ndriver.start()\r\n```\r\n\r\nPlease see PR"}}
{"actor":{"display_login":"ikalchev"}}