I don’t know why, but macOS doesn’t seem to have an automatic ability to shut down the WiFi adapter when an Ethernet connection is detected. It’s a simple thing that can cause several problems, especially if you are in an environment where you may need to authenticate to a network or access VPN services.
It may be possible to manage locations and some additional tools, but I didn’t want something that required retooling every time I used my system in a new location, so I decided to write a simple script, using built-in tools for everything except the execution of the script.
This script will check for both an active WiFi connection and also an active Ethernet connection. If it detects both, it will shutdown the WiFi interface and display a notification, via macOS notifications, that it has done this. I haven’t tested this on previous versions of macOS (only Mojave), though if the rest of the commands work, the script might function by simply removing the statement that generates a notification.
In the morning, when I first get up, I walk past a motion sensor. A moment later a lamp with a color-changing bulb illuminates, glowing a specific color to indicate the temperature range that will include today’s forecast high temperature. With just one glance I know whether or not I should take a jacket before I step outside.
It’s been a long time since I last spent any significant amount of time focused on home automation but I recently made up for lost time by eliminating the last of my Insteon gear. All of the home automation gear is now Z-Wave compatible. But why stop there and not take the opportunity to add new enhancements?
In general, I’m uninterested in bulbs that can be directly controlled themselves, such as Z-Wave or wifi enabled light bulbs. They certainly have their applications but I don’t find them very practical for normal use. They still require that a light switch is left in the ON position in order to function. This breaks down very quickly when guests come to visit. For example, even with a remotely controlled lamp on an appliance or dimming module I often discover that instead of using the provided remotes our guests have simply turned the guest room lamp off using the traditional lamp switch. It’s just a normal, reasonable action.
My reason for purchasing a Z-Wave controlled, color-changing LED bulb certainly wasn’t a typical one. In this case I purchased one to use with my home automation system as a supplemental notification method, though for this particular project it is actually the only notification method used.