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.
That PR is a start, but definitely needs some refinement:
[ ] better handle 'off', ie don't just turn off, like at night or if the light was on
[ ] properly document isthisthingon
[ ] don't try to publish the topic if not on the home wifi
[ ] consider making isthisthingon publish state for each individual camera, and putting the smarts for knowing that two of the cameras on means conference call
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: