All Projects → harperreed → Google Home Notifier Python

harperreed / Google Home Notifier Python

A google home notification webservice

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Google Home Notifier Python

Home Assistant Config Fr
🏠Configuration de Home Assistant en français. 👨🏻‍💻 N'hésitez pas à ⭐ mon repo et à copier les bonnes idées ! 🇨🇵
Stars: ✭ 175 (+94.44%)
Mutual labels:  home-automation, google-home
Home assistant files
Here are my Home Assistant configuration files
Stars: ✭ 159 (+76.67%)
Mutual labels:  home-automation, google-home
Homeautio.mqtt.googlehome
Stars: ✭ 168 (+86.67%)
Mutual labels:  home-automation, google-home
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+124.44%)
Mutual labels:  home-automation, google-home
Home-Assistant-Configuration
HomeAssistant Configuration
Stars: ✭ 14 (-84.44%)
Mutual labels:  home-automation, google-home
Sinric
Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
Stars: ✭ 259 (+187.78%)
Mutual labels:  home-automation, google-home
GoogleSpeak
No description or website provided.
Stars: ✭ 14 (-84.44%)
Mutual labels:  home-automation, google-home
Hoobs
Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
Stars: ✭ 325 (+261.11%)
Mutual labels:  home-automation, google-home
Mqtt Camera Streamer
Stream images from a connected camera over MQTT & view using Streamlit
Stars: ✭ 71 (-21.11%)
Mutual labels:  home-automation
Homie Esp8266
💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
Stars: ✭ 1,241 (+1278.89%)
Mutual labels:  home-automation
Hassiq
Home Assistant interface for Garmin's Connect IQ Platform
Stars: ✭ 71 (-21.11%)
Mutual labels:  home-automation
Home Assistant Configs
Config files used for my install of Home Assistant. This is no longer maintained as I started my install over, and have been using the UI for configuration.
Stars: ✭ 73 (-18.89%)
Mutual labels:  home-automation
Lovelace Themes
Homebrew themes for homeassistant lovelace ui
Stars: ✭ 83 (-7.78%)
Mutual labels:  google-home
Node Red Contrib Home Assistant
Home Assistant + Node-Red
Stars: ✭ 71 (-21.11%)
Mutual labels:  home-automation
Rpieasy
Easy MultiSensor device based on Raspberry PI
Stars: ✭ 85 (-5.56%)
Mutual labels:  home-automation
Streamdeck Homeassistant
🏠 Use the Elgato Stream Deck as Home Assistant controller. Call any available service and toggle lights or resume your music.
Stars: ✭ 69 (-23.33%)
Mutual labels:  home-automation
Mysensors
MySensors library and examples
Stars: ✭ 1,150 (+1177.78%)
Mutual labels:  home-automation
Simpleadmin Rails
SimpleAdmin - Dashboard for modern website without wasting time
Stars: ✭ 87 (-3.33%)
Mutual labels:  webservice
Fritzctl
A lightweight, easy to use console client for the AVM FRITZ!Box Home Automation.
Stars: ✭ 84 (-6.67%)
Mutual labels:  home-automation
Wsdl Creator
PHP WSDL Creator using PHPdoc (annotations, reflections).
Stars: ✭ 79 (-12.22%)
Mutual labels:  webservice

A notification server that sends notifications to Google Home

This is pretty simple. I had started using noelportugal's really great node Google Home Notifier but was having some issues with stability.

I decided to write it in a language i know a bit better - python! yay. Python is your friend.

The gist is this:

This is a webservice that has two endpoints:

  • /play/ - plays an mp3 on the google home that is in the static folder
  • /say/ - uses googles unofficial google translate TTS service to say a notification

use

getting started

This uses flask and you should just be able to install the requirements: pip install -r requirements.txt and then run the webservice python main.py

You will have to edit main.py and change the device_name to one of your google home device's name. If you have more than 1 google home, I would recommend you put all your google homes into a play group and place the play groups name in the device_name variable.

URLs

/play/mp3name.mp3

This will play mp3name.mp3 over the google homes. I put two mp3s in the static dir for you to try out: JR.mp3 and doorbell1.mp3. Try them: /play/JR.mp3 or /play/doorbell1.mp3

/say/?text=Oh My God this is awesome

Just pass a GET variable to the /say/ endpoint and the google homes will say your text. It also caches this so that the second time it will be a bit quicker than the first time. yay.

You can also do other languages too:

/say/?text=猿も木から落ちる&lang=ja

running for real

I use docker to run it. It works pretty well. I even included some pretty good docker script that will make it easier. Please check that out for more help.

How

Google homes are just chromecasts! Who knew! You just have to treat them like chromecasts. They show up when you browse for chromecasts via python or any other code library. You can then just send audio their way.

TODO

  • Break out the google home bits and make it easy to integrate into other projects and not just a webservice

HMU

[email protected]

@harper on twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].