npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-gsh

v4.2.0

Published

Google Smart Home

Readme

Homebridge to Google Smart Home

npm npm Discord verified-by-homebridge Donate

Control your supported Homebridge accessories from any Google Home speaker or the Google Home mobile app. Inspired by homebridge-alexa.

Supported Device Types

  • Switch
  • Outlet
  • Light Bulb
    • On / Off
    • Brightness
    • Color (Hue/Saturation)
  • Fan / Fan v2
    • On / Off
    • Fan Speed (percentage and named speeds, see Fan Voice Commands)
    • Reverse (when the fan supports Rotation Direction)
  • Window
  • Window Coverings
  • Door
  • Doorbell Notifications
    • Note: Doorbells are supported for notifications only. When the doorbell is pressed, Google Home speakers announce that someone is at the door. There is no video streaming, and voice notifications for the doorbell must be enabled in the Google Home app.
  • Garage Door (2FA required)
  • Thermostat / Heater Cooler
  • Television (On / Off)
  • Lock Mechanism (2FA required)
  • Security System (2FA required)
  • Temperature Sensor
  • Humidity Sensor

Note: Google Smart Home does not currently support all "sensor" devices such as Motion Sensors or Occupancy Sensors etc.

Subscription Required

As of May 2025, homebridge-gsh requires a subscription to operate. This change supports the maintenance of the secure cloud infrastructure that enables integration with Google Smart Home. New users will receive a 7-day free trial. Existing users will be gradually enrolled starting in mid June 2025.

For more details on pricing, enrollment, and frequently asked questions, please visit the Subscription Service wiki page.

Installation Instructions

Option 1: Install via Homebridge Config UI X:

Search for "Google Home" in homebridge-config-ui-x and install homebridge-gsh.

Option 2: Manually Install:

sudo npm install -g homebridge-gsh

Configuration

To configure homebridge-gsh you must also be running homebridge-config-ui-x.

  1. Navigate to the Plugins page in homebridge-config-ui-x.
  2. Click the Settings button for the Google Smart Home plugin.
  3. Click the Link Account button.
  4. Sign in with your Google or GitHub account.
  5. Your account is now linked.
  6. Restart Homebridge for the changes to take effect.
  7. Add the Homebridge Action using the Google Home mobile app. See Wiki for detailed instructions.

homebridge-gsh-signup

Enabling Accessory Control

Homebridge must be running in insecure mode to allow accessory control via this plugin. See Enabling Accessory Control for instructions.

Multiple Homebridge Instances

This plugin must only be configured on one Homebridge instance on your network as the plugin will discover all your other Homebridge instances and be able to control them. For this to work:

  • all instances must be running in insecure mode
  • all instances must have the same PIN defined in the config.json

Fan Voice Commands

Fans that expose a Rotation Speed characteristic can be controlled by percentage or by named speed. Every fan answers to "low", "medium" and "high". How they map depends on the Rotation Speed minStep:

| Fan reports | Named speeds | low | medium | high | |---|---|---|---|---| | minStep of 1 or none (continuous) | low, medium, high | 33% | 66% | 100% | | 2 steps (e.g. minStep 50) | low, high | step 1 | step 2 | step 2 | | 3 steps (e.g. minStep 33.33) | low, medium, high | step 1 | step 2 | step 3 | | 4 to 10 steps (e.g. minStep 16.67 for a 6-speed fan) | speed 1 … speed N | speed 1 | middle speed, rounded up (e.g. speed 3 of 6) | speed N |

Example commands, using a fan named "Bedroom Fan":

  • "Hey Google, turn on / turn off Bedroom Fan"
  • "Hey Google, set Bedroom Fan to low / medium / high"
  • "Hey Google, set Bedroom Fan to speed 2" (also "level 2")
  • "Hey Google, set Bedroom Fan to 40 percent"
  • "Hey Google, what speed is Bedroom Fan on?"
  • "Hey Google, reverse Bedroom Fan" (only if the fan supports Rotation Direction)

Notes:

  • Use "turn off" to stop the fan. Off is handled by On / Off, not as a named speed.
  • "Increase / decrease fan speed" is not supported yet.
  • Named speeds are English only. After updating, say "Hey Google, sync my devices" so Google picks up the new speeds.

Known Issues

  1. Only one Homebridge instance can be linked to an account (even across different local networks). You will experience unintended results if you try and link more than one instance to the same account.
  2. Doorbells show no controls or status on home.google.com, and the Google Home iPhone app may list the doorbell as "Offline". This is a limitation of how Google Home displays doorbells without a camera; doorbell announcements still work.

Troubleshooting

1. Errors during installation

Make sure you installed the package with sudo flag. Most installation errors can be fixed by removing the plugin and reinstalling:

# cleanup
sudo npm uninstall -g homebridge-gsh

# reinstall
sudo npm install -g homebridge-gsh

2. Cannot control accessories

See Enabling Accessory Control and Multiple Homebridge Instances.

3. Ask on Discord

Join the Official Homebridge Discord community and ask in the #homebridge-gsh channel.

Contributing

Please see CONTRIBUTING.md.

Credits

License

Copyright (C) 2025 Homebridge

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Sponsors