Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oznu/homebridge-gsh
Allow Google Assistant to control your Homebridge accessories.
https://github.com/oznu/homebridge-gsh
google-assistant google-smart-home homebridge homebridge-plugin homekit
Last synced: 2 months ago
JSON representation
Allow Google Assistant to control your Homebridge accessories.
- Host: GitHub
- URL: https://github.com/oznu/homebridge-gsh
- Owner: oznu
- License: gpl-3.0
- Created: 2019-07-23T12:49:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T22:30:53.000Z (11 months ago)
- Last Synced: 2024-04-14T09:48:35.815Z (8 months ago)
- Topics: google-assistant, google-smart-home, homebridge, homebridge-plugin, homekit
- Language: TypeScript
- Homepage: https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en
- Size: 1.07 MB
- Stars: 392
- Watchers: 23
- Forks: 48
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
### [Plugin End Of Life - 1st of December 2024](https://github.com/oznu/homebridge-gsh/releases/tag/v2.2.3)
# Homebridge to Google Smart Home
[![npm](https://img.shields.io/npm/v/homebridge-gsh.svg)](https://www.npmjs.com/package/homebridge-gsh)
[![npm](https://img.shields.io/npm/dt/homebridge-gsh.svg)](https://www.npmjs.com/package/homebridge-gsh)
[![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=discord)](https://discord.gg/cFFBuvp)
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![Donate](https://img.shields.io/badge/donate-paypal-yellowgreen.svg)](https://paypal.me/oznu)Control your supported [Homebridge](https://github.com/nfarina/homebridge) accessories from any Google Home speaker or the Google Home mobile app. Inspired by [homebridge-alexa](https://github.com/NorthernMan54/homebridge-alexa).
* [Supported Device Types](#supported-device-types)
* [Installation Instructions](#installation-instructions)
* [Configuration](#configuration)
* [Known Issues](#known-issues)
* [Troubleshooting](#troubleshooting)
* [Credits](#credits)
* [License](#license)
* [Sponsors](#sponsors)## Supported Device Types
* Switch
* Outlet
* Light Bulb
* On / Off
* Brightness
* Color (Hue/Saturation)
* Fan (On / Off)
* Fan v2 (On / Off)
* Window
* Window Coverings
* Door
* 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.*
## Installation Instructions
#### Option 1: Install via Homebridge Config UI X:
Search for "Google Home" in [homebridge-config-ui-x](https://github.com/oznu/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](https://github.com/oznu/homebridge-config-ui-x).
1. Navigate to the Plugins page in [homebridge-config-ui-x](https://github.com/oznu/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](https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en) using the Google Home mobile app. [See Wiki](https://github.com/oznu/homebridge-gsh/wiki#add-homebridge-to-google-home-app) for detailed instructions.![homebridge-gsh-signup](https://user-images.githubusercontent.com/3979615/62948031-ff228d80-be26-11e9-9e07-ef1023f28fa8.gif)
### Enabling Accessory Control
Homebridge must be running in insecure mode to allow accessory control via this plugin. See [Enabling Accessory Control](https://github.com/oznu/homebridge-config-ui-x/wiki/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](https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control)
* all instances must have the same PIN defined in the `config.json`## 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.
## 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:
```shell
# cleanup
sudo npm uninstall -g homebridge-gsh# reinstall
sudo npm install -g homebridge-gsh
```#### 2. Cannot control accessories
See [Enabling Accessory Control](https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control) and [Multiple Homebridge Instances](#multiple-homebridge-instances).
#### 3. Ask on Discord
Join the [Official Homebridge Discord](https://discord.gg/cFFBuvp) community and ask in the [#homebridge-gsh](https://discord.gg/cFFBuvp) channel.
## Contributing
Please see [CONTRIBUTING.md](CONTRIBUTING.md).
## Credits
* [NorthernMan54](https://github.com/NorthernMan54) - developer of the [Hap-Node-Client](https://github.com/NorthernMan54/Hap-Node-Client) module which is used by this plugin.
## License
Copyright (C) 2019 oznu
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](./LICENSE) for more details.
## Sponsors