Run HomeKit scene without using the Shortcuts app
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.
Thank you very much
I don’t know why, but I can’t find the scenes and the accessories (mostly philips hue) in the shortcuts app. I only have the options of control home and get state, which really leads me to nothing. It says “set scenes..” but doesn’t prompt me anything to select :(
Worth mentioning that I have a Philips hub and Apple TV, and prior to this i noticed that they were registered on two different “Homes” in homekit. The Nox Vidmate VLC Apple TV was alone in the second one, which I now have deleted.
What can I do to fix this? Delete everything and start from scratch?
@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?