technicalpickles / picklehome

Configuration & Planning for my Home Automation systems
14 stars 0 forks source link

Conference call mode #51

Open technicalpickles opened 6 years ago

technicalpickles commented 6 years ago

I have a pair of hue bulbs on either side of my desk to get good lighting during conference calls. It'd be nice to automate.

The hardest part has been knowing when the camera is on. Plausibly could be using stuff like calendar to look for conference calls, but just because there's an event doesn't mean I'll be on it, and it doesn't mean I'll be at my desk to take it.

I finally found a tool to detect the camera being on, MicroSnitch. It logs to a file, which then can be tailed.

https://github.com/technicalpickles/isthisthingon is code to run on a laptop, and it publishes mqtt topics. HA has a binary sensor for that topic, which can then have automations around: https://github.com/technicalpickles/picklehome-homeassistant-config/pull/50

That PR is a start, but definitely needs some refinement: