Jump to content

Homekit workflow

Recommended Posts

A workflow to trigger Homekit scenes and accessories. 







Github: https://github.com/foogywoo/HKAlfred


Downside: Homekit still being a private framework on macos SIP needs to be disabled for it to work.

Edited by foogywoo
Link to comment
  • 1 year later...

With Big Sur it's now officially possible to create a macos HomeKit application. Which means SIP doesn't need to be disabled.


Still, I think Alfred would actually need to add an option to request user permission for HomeKit access.

I'm getting the following error when trying to run my little HomeKit helper tool through a script filter node.


Refusing authorization request for service kTCCServiceWillow and subject Sub:{com.runningwithcrayons.Alfred}Resp:{{ID: com.runningwithcrayons.Alfred, PID[19281], auid: 501, euid: 501, responsible path: '/Applications/Alfred 4.app/Contents/MacOS/Alfred', binary path: '/Applications/Alfred 4.app/Contents/MacOS/Alfred'}} without NSHomeKitUsageDescription key


Link to comment
  • 4 months later...

hi, foogywoo, Can you help me and tell me what this message means ?


[21:26:13.797] Logging Started...

[21:26:15.569] HomeKit[Script Filter] Queuing argument '(null)'

[21:26:15.654] HomeKit[Script Filter] Script with argv '(null)' finished

[21:26:15.656] ERROR: HomeKit[Script Filter] Code 137: /Users/gustavopereiranunes/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/76E951A7-F304-49E2-A9F0-C9CD21C3B345: line 1:   723 Killed: 9               ./HKAlfredHelper list

Link to comment
  • 1 year later...

For those who don't want to disable SIP, and are ok with a little extra work, I'm using the Shortcuts workflow (https://www.alfredapp.com/blog/guides-and-tutorials/macos-shortcuts-with-alfred-workflow/) with a few Shortcuts containing the scenes I most often want when I'm using a workstation or laptop with Alfred. 


I'd love to see the Alfred team follow on with @foogywoo's note and get homekit access in the app itself so we can have full access via this Homekit workflow. Until then, I'm happy there are workarounds. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...