An unofficial macOS menu bar thermostat controller for Google Nest devices using Google Smart Device Management.
Menu Bar Thermostat runs locally on your Mac, stores Google OAuth tokens in the macOS Keychain, and does not require a separate backend server. Under Google's current Device Access rules, each user needs their own Device Access project unless Google approves a commercial integration.
This repository is intended for developers who can configure their own Google Cloud, OAuth, Device Access, Pub/Sub, and Workload Identity setup. It will not build into a working app as-is after cloning because the required Google service configuration is intentionally omitted from the public repo.
This project is source-available for local builds and early public review. It is not affiliated with, endorsed by, or sponsored by Google, Nest, or Alphabet.
This repository is shared as a developer reference. Issues and pull requests are welcome, but active maintenance is not guaranteed.
Before publishing a signed release, verify that local Google project configuration is not bundled into the app artifact.
- macOS
- Xcode
- A Google Cloud project
- A Google Device Access project for the thermostat devices you want to control
- Pub/Sub permissions for receiving Device Access events
For the full Google setup path, see Docs/google-device-access-setup.md.
- Open
Menu Bar Thermostat.xcodeprojin Xcode. - If Xcode prompts for signing, choose your own development team and replace the placeholder
com.example.MenuBarThermostatbundle identifier with one you control. - Copy
Menu Bar Thermostat/Configuration/BuildSettings.example.xcconfigtoMenu Bar Thermostat/Configuration/BuildSettings.local.xcconfig. - Fill in:
GOOGLE_OAUTH_CLIENT_ID =
GOOGLE_OAUTH_REVERSED_CLIENT_ID =
- Copy
Menu Bar Thermostat/Configuration/AppConfig.example.plisttoMenu Bar Thermostat/Configuration/AppConfig.local.plist. - Fill in the runtime Google project values:
DEVICE_ACCESS_ENTERPRISE_IDPUBSUB_GOOGLE_CLOUD_PROJECT_IDPUBSUB_TOPIC_IDWORKLOAD_IDENTITY_AUDIENCEPUBSUB_SERVICE_ACCOUNT_EMAIL
- Build and run the
Menu Bar Thermostatscheme.
The *.local.xcconfig and *.local.plist files are ignored by Git and should stay private.
After Google Sign-In, Menu Bar Thermostat stores its Google OAuth token in your macOS login Keychain so it can restore your session on relaunch. macOS may ask whether "Menu Bar Thermostat wants to use your confidential information stored in 'auth' in your keychain." This is expected for local token restore; choose "Always Allow" if you want the app to reconnect without asking each launch.
Temporary connection failures are retried automatically without discarding your saved sign-in. Use Show Connection Log in the popover or Settings to inspect recent recovery attempts. See Google connection recovery for diagnostics, token expiration, and troubleshooting.
Run the macOS XCTest suite before opening a pull request:
xcodebuild -project 'Menu Bar Thermostat.xcodeproj' -scheme 'Menu Bar Thermostat' -configuration Debug -destination 'platform=macOS' -derivedDataPath .build/codex-macos -parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO testSee PRIVACY.md for local data handling and SECURITY.md for vulnerability reporting.
Menu Bar Thermostat is available under the MIT License. See LICENSE.
