The new Home app in macOS Mojave allows you to control lights and other devices in your Home. It is a simple extension of the Home app and HomeKit functionality that has already existed in iOS for a while. Now you can control those devices using your Mac too.