{"id":33167508,"url":"https://github.com/hkontrol/hkmobile","last_synced_at":"2026-02-04T20:30:23.978Z","repository":{"id":87504874,"uuid":"596054510","full_name":"hkontrol/hkmobile","owner":"hkontrol","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-08T10:26:32.000Z","size":542,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-20T18:03:52.795Z","etag":null,"topics":["android","golang","homekit","homekit-controller","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/hkontrol.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":"2023-02-01T11:21:42.000Z","updated_at":"2025-06-29T20:18:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"373a4477-f08f-4aa1-ac95-f0e15bdf39e0","html_url":"https://github.com/hkontrol/hkmobile","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hkontrol/hkmobile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkontrol%2Fhkmobile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkontrol%2Fhkmobile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkontrol%2Fhkmobile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkontrol%2Fhkmobile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkontrol","download_url":"https://codeload.github.com/hkontrol/hkmobile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkontrol%2Fhkmobile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29095355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T20:17:23.003Z","status":"ssl_error","status_checked_at":"2026-02-04T20:16:36.396Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","golang","homekit","homekit-controller","kotlin"],"created_at":"2025-11-16T00:00:45.512Z","updated_at":"2026-02-04T20:30:23.973Z","avatar_url":"https://github.com/hkontrol.png","language":"Kotlin","funding_links":[],"categories":["Home Automation"],"sub_categories":["Android Things"],"readme":"# hkmobile\n\n`hkontroller` for gomobile bind.\n\n## idea\n\nThe super idea: to develop HomeKit app for Android.\nUsing golang library this can be done in two ways:\n\n  1. Entirely in golang: [native, gioui app.](https://github.com/hkontrol/hkapp). The cons is lack of integration with Android UI(how to implement widget for desktop, for example?). The pro is that it's crossplatform - we can use it in Linux as well.\n  2. Native Android app with kotlin/java-golang coupling.\n\nThis repo is about second way.\n\nBecause gomobile [has limited support](https://pkg.go.dev/golang.org/x/mobile/cmd/gobind#hdr-Type_restrictions) for exported types we can wrap `hkontroller` into some kind json api: it is possible to operate with strings and byte slices.\n\nTo react on events like device discovery/lost, characteristic update we can define interface `MobileReceiver` and implement that interface on Java/Kotlin side:\n\n```text\ntype MobileReceiver interface {\n  OnDiscovery(string)\n  OnLost(string)\n  OnPaired(string)\n  OnUnpaired(string)\n  OnVerified(string)\n  OnClose(string)\n  OnCharacteristic(string)\n}\n```\n\n## build\n\nbuild `aar` archive:\n\n```text\ngo get golang.org/x/mobile/bind\ngomobile bind -target=android ./\ncp ./hkmobile.aar ./App5/app/libs\n```\n\n## demo\n\nhttps://youtu.be/jgUeeyzzjLg\n\n![device list](./screenshots/01.png)\n\n![device info](./screenshots/02.png)\n\n![accessories list](./screenshots/03.png)\n\n![dimmer](./screenshots/04.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkontrol%2Fhkmobile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkontrol%2Fhkmobile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkontrol%2Fhkmobile/lists"}