/smart-home

Primary LanguageJavaScriptMIT LicenseMIT

smart-home

This is my smart home project, which will include a Google Assistant App, music speaker, Phillips Hue lights and a home screen. Feel free to steal all the code you need.

Firebase

Firebase console

Smart home state is stored in firestore.

Firebase functions

firebase/functions/index.js contains functions that dialogflow calls and http triggers for flic buttons.

firebase/functions/ruter.js uses Entur sdk. Busstop ids are gotten from developer tools on Entur tavla

firebase/functions/bysykkel.js uses Bysykkel api

Google Home app

Dialogflow

Intents

hey google, ask 11 to play music

hey google, ask 11 to stop music

hey google, ask 11 about bus status

hey google, ask 11 about bicycle status

Weather

weather/index.html displays a weather widget from DarkSky. Used in webview in Android app.