smart-home ▸ MAC_CONTROL_OPTIONS.md
updated 2026-03-27

Direct Control From the Mac — Investigation

Short Answer

Yes, partially.

You likely can control some of this directly from the Mac without waiting on Apple Home UI every time, but the control surface is split by ecosystem.


What appears controllable from the Mac

1. Sonos — YES

This is the clearest direct-control path.

Confirmed Sonos devices expose local network endpoints: - Dining Room → 192.168.178.26:1400 - Family Room-s → 192.168.178.23:1400 - Bedroom-s → 192.168.178.24:1400

That means Mac-based control is feasible via: - local HTTP / UPnP calls - Sonos APIs / SOAP endpoints - custom scripts - future local control wrappers

Practical implication: - starting/stopping playback - targeting rooms - setting volume - grouping rooms - calling favorites / queues may all be scriptable from the Mac

This is promising.


2. Apple Music on the Mac — YES

The Mac can control the local Music app via: - AppleScript (osascript) - Shortcuts

This is useful for: - playing a known playlist - starting playback at a given time - potentially routing via AirPlay if preconfigured or script-supported

Practical implication: - Beatles morning playback may be possible from the Mac if the routing target is cooperative

Caveat: Apple Music + room routing can get brittle depending on whether playback target is Sonos-native, AirPlay-native, or Apple Home mediated.


3. Apple Shortcuts on Mac — YES

The shortcuts CLI exists on this Mac.

This means the Mac can: - run named shortcuts - potentially trigger Home actions if those are exposed through user-created Shortcuts - act as an automation bridge

Practical implication: If Apple Home scenes can be wrapped in Shortcuts, the Mac becomes a useful control hub.


4. HomeKit / Apple Home Direct Automation API — MAYBE, BUT NOT CLEAN

This is the weakest direct path.

Apple Home is usually great for user-facing setup, but not always great for scriptable external control from shell.

So while the Mac can likely trigger Home-related behavior through: - Shortcuts - UI automation - user-defined scenes

direct shell-native HomeKit control is not as clean as Sonos control.

Practical implication: - lights/scenes may still require one-time Apple Home setup - after setup, Mac-triggered shortcuts may reduce future friction


Best-Control Paths by Function

Audio playback

Best first bet: Sonos direct control

Playlist selection

Best first bet: Apple Music or Sonos favorite

Light scenes

Best first bet: Apple Home scenes

Programmatic execution from Mac

Best first bet: Mac Shortcuts as glue


For V1

Use a hybrid:

Lighting

Audio

Triggering / automation

This avoids overengineering while still creating an upgrade path.


Most Promising Automation Path

Morning routine

Candidate execution model: 1. Mac runs scheduled trigger or shortcut at 7:00 on weekdays 2. Sonos Dining Room receives playback command 3. Mac or Apple Home triggers kitchen light flash at 7:36

Dinner mode

Candidate execution model: 1. Home scene sets lights 2. Shortcut or Sonos favorite starts dining playlist

Movie night

Candidate execution model: 1. Home scene turns lights off 2. no need to automate stars


Recommendation

What can likely be automated from the Mac without too much pain

What probably still needs one-time UI setup


Bottom Line

You do not need to wait forever on Apple UI for everything.

The realistic split is: - Sonos: scriptable now - Apple Music: scriptable enough - Home scenes / lighting: probably one-time Apple Home setup, then reusable from Mac/Shortcuts

That is good enough to move.