{"id":16655668,"url":"https://github.com/mtrudel/hap_demo","last_synced_at":"2026-05-19T22:36:58.373Z","repository":{"id":66311743,"uuid":"312719650","full_name":"mtrudel/hap_demo","owner":"mtrudel","description":"A demo app for HAP, the Elixir HomeKit Accessory Protocol library","archived":false,"fork":false,"pushed_at":"2021-04-27T18:23:25.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T11:32:23.742Z","etag":null,"topics":["elixir","hap","homekit","nerves"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtrudel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-11-14T01:08:18.000Z","updated_at":"2024-02-28T10:01:14.000Z","dependencies_parsed_at":"2023-03-13T20:30:01.820Z","dependency_job_id":null,"html_url":"https://github.com/mtrudel/hap_demo","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/mtrudel%2Fhap_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fhap_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fhap_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fhap_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtrudel","download_url":"https://codeload.github.com/mtrudel/hap_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243276535,"owners_count":20265342,"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":["elixir","hap","homekit","nerves"],"created_at":"2024-10-12T09:53:43.329Z","updated_at":"2025-12-28T02:20:09.705Z","avatar_url":"https://github.com/mtrudel.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HAP Demo\n\nThis project is an example of how to use the [HAP](https://github.com/mtrudel/hap) library\nto create HomeKit controllable software using Elixir \u0026 Nerves. This example is focused on RPi\nand wires up a GPIO pin to represent a light bulb. To demonstrate asynchronous notifcations you\nmay send messages to the GPIO module like so:\n\n```\nHAPDemo.GPIO.toggle(22)\n```\n\nThese changes will be reflected in real-time within any HomeKit controller that lists the light\nbulb service.\n\n# Usage\n\nAs a demonstration project, this project is intended to be run on a Raspberry Pi of\njust about any flavour (it should also run on other Nerves targets with minor changes to\nGPIO pin numbers). To install \u0026 run it, simply:\n\n  * Ensure you have the supported Erlang \u0026 Elixir versions installed. See [Nerves' excellent\n    documentation](https://hexdocs.pm/nerves/installation.html) for help with this.\n  * Install HAP and other dependencies by running `MIX_TARGET=rpi_0 mix deps.get`\n  * Create firmware with `MIX_TARGET=rpi_0 mix firmware`\n  * Burn to an SD card with `MIX_TARGET=rpi_0 mix firmware.burn`\n  * Configure your Nerves target to connect to your local network (again, consult [Nerves'\n    documentation](https://hexdocs.pm/vintage_net/readme.html) on the matter).\n  * Connect to the console of your Nerves target. If the QR / Pairing code is not visible, \n    you can regenerate it by running `HAP.Display.update_pairing_info_display()`.\n  * Use the Home app on your iOS device to connect to the Nerves device by scanning \n    the QR code or manually entering the pairing code.\n\nNote that HAP has a hard requirement for OTP 23 or greater due to the availability of \ncertain crypto routines. If you use asdf to host your Erlangs, the `.tool-versions` file\nin this project will take care of you; just run `asdf install` in this folder and you \nshould be good to go.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrudel%2Fhap_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtrudel%2Fhap_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrudel%2Fhap_demo/lists"}