{"id":20172885,"url":"https://github.com/seanson/2018-pyconau-homekit-python","last_synced_at":"2026-04-19T01:03:17.078Z","repository":{"id":42238531,"uuid":"146257745","full_name":"seanson/2018-pyconau-homekit-python","owner":"seanson","description":"The sample implementation from my PyConAU 2018 talk","archived":false,"fork":false,"pushed_at":"2023-07-17T20:53:24.000Z","size":6159,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T15:52:25.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-27T06:47:29.000Z","updated_at":"2022-04-09T09:26:52.000Z","dependencies_parsed_at":"2024-11-14T01:32:48.008Z","dependency_job_id":"87ae0bc8-a130-42e0-a039-efcfc49dc5dc","html_url":"https://github.com/seanson/2018-pyconau-homekit-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanson%2F2018-pyconau-homekit-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanson%2F2018-pyconau-homekit-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanson%2F2018-pyconau-homekit-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanson%2F2018-pyconau-homekit-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanson","download_url":"https://codeload.github.com/seanson/2018-pyconau-homekit-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241610977,"owners_count":19990505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T01:32:43.923Z","updated_at":"2025-12-01T12:04:35.789Z","avatar_url":"https://github.com/seanson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyConAU 2018\n\n## Automating Your Home with Python, Raspberry Pi and HomeKit\n\nThis is the sample code from my talk from my 2018 PyConAU IoT track talk in Sydney.\n\n[Talk Page](https://2018.pycon-au.org/talks/45170-automating-your-home-with-python-raspberry-pi-and-homekit/)\n\n[![Automating Your Home with Python, Raspberry Pi and HomeKit](https://img.youtube.com/vi/SiLtPgeTZLA/0.jpg)](https://www.youtube.com/watch?v=SiLtPgeTZLA)\n\n[Youtube Link](https://www.youtube.com/watch?v=SiLtPgeTZLA)\n\n## Contents\n\n- `src/hap.py`: The main script for initialising a HomeKit Accessory\n- `src/aircon.py`: A wrapper script around `irsend` for sending IR commands via LIRC\n- `slides.pdf`: A pdf export of the original slides used.\n\n## Usage\n\nPip or pipenv can be used to install the requirements.\n\nRun `python src/hap.py` to start the sample or `MOCK_IRSEND=true python src/hap.py` to mock the irsend commands for testing.\n\n## Operating System\n\nI used the RaspbianPi lite image. You'll need a few extras:\n\n`apt-get install lirc python3-pip`\n\n`pip3 install pyenv`\n\n## Configuring LIRCd\n\nOnce you've sorted out which GPIO pins on the RasPi you want to use, these need to be configured in a few locations:\n\n`/boot/config.txt`:\n\n`dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22`\n\n`/etc/lirc/lirc_options.conf`:\n\nChange\n\n`driver = devinput`\n\nto\n\n`driver = default`\n\nYou'll also need some sort of configuration for LIRCd to talk to your remote. I managed to find a handy set of configuration for my Fujitsu remote here: [mattjm/Fujitsu_IR](https://github.com/mattjm/Fujitsu_IR).\n\nIf not, you'll need to manually capture your IR commands which is beyond the scope of this document.\n\n## Links\n\n- [HAP-Python](https://github.com/ikalchev/HAP-python): The underlying library to support this automation\n- [HomeKit Accessory Docs](https://developer.apple.com/support/homekit-accessory-protocol/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanson%2F2018-pyconau-homekit-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanson%2F2018-pyconau-homekit-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanson%2F2018-pyconau-homekit-python/lists"}