Automating Home.app to set a scene

Has anyone managed to use Keyboard Maestro to turn a "scene" on / off in the Home.app?

(I can't believe they didn't even include basic AppleScript support… and I doubt Catalina will be any better.)

UPDATE: Ah, well, the good news is that there are at least menu items to change to particular "rooms". So that helps. Then you can click at X,Y from the top left corner. It's not great, but it's better than nothing.

Here's what I used as a starting point, in case others are interested:

  1. Activate Home.app
  2. Pause until:
    • Home.app is at front
    • Front Window Exists
    • Menu item with "Garage" is enabled
  3. Select Menu Item: View » Garage
  4. Move and Click at X,Y (the location of the "button" on the Home.app that I want to select)

(If you're wondering if you can use Keyboard Maestro's "Click Button" the answer is no. I assume the "buttons" in the Home.app aren't really "buttons" in the traditional macOS sense.)

A few months ago someone uploaded a solution by which you send text strings to Siri and Siri will obey the command. See if you can find that thread. It was a brilliant solution.

That's interesting. I found it. Thanks for sharing.

You are welcome. You should be able to use that approach to solve your problem.