Network change
Runs the macro when you join a Wi-Fi network, or when the network becomes reachable or unreachable.
The Mac joins Wi-Fi ssid
Keyboard Maestro: WirelessNetwork
Details #
Two forms:
With
ssid, fires when you join the network with that name (not case sensitive).Without
ssid, fires when the Mac goes online (reachabletrue or left out) or offline (reachablefalse).
The first network reading after Switchboard starts only sets a baseline and fires nothing.
Location access. macOS only tells apps the Wi-Fi name when they have Location access. Without it the name is unknown and an ssid trigger cannot match. Reachable and unreachable triggers do not need it.
{{triggerValue}} is empty.
Secure input does not affect this trigger.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
event | one of | joined left | ||
match | one of | is contains | ||
reachable | yes / no | true to fire when the network comes back, false when it drops. Ignored when ssid is set. | ||
ssid | text | The Wi-Fi network name to wait for. |
Every trigger also takes Limits: a cooldown, the first time each day, every nth time, twice within seconds, a chance, only while you are at the Mac, on one Mac, or in a State. See Limits on any trigger.
Examples #
- Joining Wi-Fi “Home”
- Show “Welcome home”
- The network becomes unreachable
- Show “Offline”
Gotchas #
Switching to another network while staying online fires
joinedfor the new name, notreachable.Not fired reasons:
disabled,groupOff,scope,paused,conditionFalse.