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.
Smart home state is stored in firestore.
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
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/index.html
displays a weather widget from DarkSky. Used in webview in Android app.