The development is in a good stage. I’ve implemented an entity for automating next alarm actions. This is, for example, opening the blinds 5 minutes before waking up, or turning on the coffee machine.
Take a look at the Github repo, or download the package directly.
Edit: Having read some concerns about the storage of the Google’s credentials, it’s getting baked an update which stores just an authorisation token, and not the full credentials.
Installation instructions
First of all, download the version 0.0.3
(the last one right now) with wget, for example, at the custom_components
directory of your Home Assistant configuration folder (e.g. ~/.homeassistant/custom_components
):
wget -O ~/.homeassistant/custom_components/googlehome.zip https://github.com/ArnyminerZ/HomeAssistant-GoogleHome/releases/download/ha-0.0.3/googlehome.zip
After that, create a googlehome
directory, and decompress the file inside it:
cd ~/.homeassistant/custom_components
mkdir googlehome
unzip googlehome.zip -d googlehome
Now the hard work is done, just restart your Home Assistant instance, and configure your device.
Configuring a device
Configuring your Google Home is really easy, and can be done from the UI.
Simply go to your integrations page at Home Assistant (e.g. 192.168.1.1:8123/config/integrations
), select the Add Integration button, and if you have installed the integration correctly, an integration called Google Home should appear; select it.
The following window should open:
You should fill the fields with your Google’s username, and your password. This second one can be:
- Your Google’s Account password (if you don’t have 2FA enabled)
- An app password (if you have 2FA enabled). It can be generated from
Google’s website.
Now it’s time to configure your device. First, access the Google Home app on your phone, and search for the desired
device, enter its configuration, and at the bottom of the page, the IP of the device should appear. Now, fill as
follows:
On IP Address
, put the found address, on Name
, the name you have set to your device in the Google Home app. In GET
path, choose one of the following:
-
next_alarm
: The value of the entity will be the timestamp (UNIX) of the next alarm at the device.
Conclusion
There’s still a lot of work to do, and right now only the “next alarm” feature is ready, but I’m optimistic, and with some hard work, this could be functional in little time.
Contribution Needed (TODO)
- Logo
- Service for calling features like reboot.
- More options for automation.