Forum Archive

Run HomeKit scene without using the Shortcuts app

weda82

Hi

I am looking for a way to run a HomeKit scene from a Pythonista script.
I know I could do it, using the Apple's Shortcuts app. But this approach is problematic, when I want to execute two scenes from a script. The problem seems to be passing the execution flow from the Shortcuts app back to my Pythonista script and continue it's execution. When I call my Pythonista script from the Shortcuts app, then the Shortcuts app waits for my script to finish. During the waiting I can not call another shortcut.

So I was wondering if there might be a way to run HomeKit scenes without the indirection of using the Shortcuts app.

I found this post: https://forum.omz-software.com/topic/4696/homekit/4, but it's two years old.

Any ideas?

Thank you very much

mikael

@weda82, just tried to init a HMManager again, and it just crashes Pythonista, so I think we are missing the proper entitlements on app level.

Have you seen & tried this Python version?