Chrome extension that relays your Google Meet status (in meeting or not) to Home Assistant so you can build your own DIY "On Air" light or other automations.
It works by detecting whether you have any active meetings open in any Chrome tabs, and then toggles an Input Boolean in Home Assistant accordingly which you can use to create automations from.
See my blog post for more details.
You can install this via the Chrome Web Store here: https://chrome.google.com/webstore/detail/google-meet-%3C%3E-home-assis/gghhlbjdgdemfjmkdfoiebpobebkkccm?hl=en&authuser=0
Or you can download and build it yourself:
- Download this project
- Run
yarn install && yarn build
in the repo root - Visit
chrome://extensions
in your browser - Enable Developer mode
- Click on "Load unpacked extension" and select the
dist
folder that yarn built
- Generate a long-lived access token in Home Assistant
- Create a new input boolean in Home Assistant
- Click on the Chrome extension in your browser to open the configuration page and configure your Home Assistant URL, auth token, and input boolean entity ID accordingly.
Simply create or join a Google Meet meeting in your browser, and the extension will automatically toggle your input boolean entity in Home Assistant. The Chrome extension icon should display mtg
if it detects that you are in a meeting, and the input boolean should toggle itself accordingly when you join/leave meetings.
With everything set up and working you can now use that input boolean to create automations in Home Assistant! For an "On Air" light, you could create an automation that uses any Home Assistant light integration to toggle some light on/off when you join/leave a meeting. This could be a Philips Hue light, a LED embedded in an Arduino/ESP8266/Raspberry Pi, or any other light you have in your Home Assistant instance!
Personally, I've repurposed an older Adafruit Weather Lamp project I built by flashing WLED onto the board and configuring presets for when I'm in a meeting (spinning red colors) or not (solid green).
Can I just download this from the Chrome store? Yes you can! https://chrome.google.com/webstore/detail/google-meet-%3C%3E-home-assis/gghhlbjdgdemfjmkdfoiebpobebkkccm?hl=en&authuser=0
Does this support other browsers and/or meeting providers? No, and I don't have plans to do so, but PRs to add support are certainly welcome!
Can this detect if the microphone or camera is actually in use? No, that's a rabbit hole I've already tried going down without much success. I'm sure it's possible but the effort required to figure out a reliable, cross-platform way to detect that is simply not worth it.
Why did you use React for a three-field form? Isn't it overkill? Yes, but I'm just starting to learn React and thought this would be a great way to practice :)