iobroker-community-adapters / ioBroker.google-smart-home-fulfillment

A Google Smart Home Actions fulfillment server for ioBroker.
MIT License
4 stars 1 forks source link

Logo

ioBroker.google-smart-home-fulfillment

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Dependency Status Known Vulnerabilities Tests

NPM

google-smart-home-fulfillment adapter for ioBroker

Caveats

This software is currently cosidered Beta test quality. Use at your own risk.

Setup of this adapter requires some technical knowledge. If you are looking for a way to connect an ioBroker instance with Google Assistant consider the ioBroker.iot adapter. Pros & cons of each are briefly discussed below.

Introduction

This adapter implements a Google Smart Home Actions fulfillment server running within an ioBroker installation. It creates devices in the Google ecosystem to mirror devices within the ioBroker object tree. These can be controller from any Google Assistant device, smartphone running the Google Assistant app, etc.

Compared with ioBroker.iot

Benefits of this adapter over ioBroker.iot include:

Disadvantages:

Feel free to submit a feature request issue for with plugin requests.

Create an Actions on Google Test Project

For correct integration with Google Assistant a project is required.

Visit the Actions on Google Console and create a new project. This is going to be a test project and will never be published so the name isn't really important. For example purposes below we assume My ioBroker is used.

The following configuration settings are necessary in the 'Develop' tab:

Moving on to the 'Test' tab:

ioBroker Installation & Configuration

The fulfilment server runs as a web adapter extension. Ie. you must have an instance of the web adapter already running and responding to HTTPS requests from the public internet for it to function. The easiest way to do this is:

Once a suitable web adapter is running, install the fulfilment adapter in the usual way then visit the settings page:

Add Devices in Google Home App

Once all the above installation and configuration steps are complete it's time to link ioBroker with Google Home. Follow these steps in Google Home App:

At this point a list of devices know to the fulfillment adater should be shown. If you are satisfied with the room placement just hit 'done'.

If you made it this far, well done! ;) Enjoy :)

Troubleshooting

Test public connectivity and certificates

Say the configured public FQDN is example.com. Verify external connectivity and certificates by visiting https://example.com/. This should yield a 404 response with a single line reading, Cannot GET / - that is expected behaviour. There should be no certificate errors (click the padlock in the brower URL bar to verify).

Check the Google HomeGraph API console

https://console.cloud.google.com/apis/api/homegraph.googleapis.com/overview

Changelog

0.0.1

License

MIT License

Copyright (c) 2020 Robin Rainton robin@rainton.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.