Home Assistant Hivemind I’ve got a request for help from a new dad.
Problem statement
I would like to setup a way to pause / redirect / mute / blacken a webcam feed from Home Assistant. In an ideal world it would show an image / loop a short video while “muted”, similar to what some Twitch streamers do when they step away.
Background
In our Baby’s nursery we have a UniFi G5 Dome camera mounted to the ceiling. This provides a wonderful overview of the baby’s crib & the entire room. However, my wife would like the ability to turn on a privacy mode when she is breast feeding etc.
Current setup
- The UniFi G5 dome is connect to a PoE switch.
- I have UniFi protect running on a Raspberry Pi.
- I have Frigate installed with the embedded Go2rtc set up.
- Frigate does motion detection, (planing on trying out audio detection soon), snapshots, recording etc.
- I have the Home Assistant Frigate integration setup bringing the video events etc. into home assistant.
- I also use VLC to stream the camera (from go2rtc) to my laptop / PCs
- I also use Channels DVR to bring the go2rtc feed to my televisions (Grandpa loves to sit on the couch and watch the Baby sleep all day on the TV).
Ideal solution
I’m thinking a virtual switch in Home Assistant to toggle privacy mode. Probably coupled with an automation to return it to normal after [45] min as my wife will almost certainly forget to return it to normal.
If I could do it where it only switched the video feed, but left the audio from the UniFi camera I would probably do that.
I’d really like to make this change at (or before) the stream hits go2rtc, so that it would mute Frigate / Home Assistant / VLC / ChannelsDVR simultaneously.
Call for help
I spent 30 seconds scanning the go2rtc API, and it wasn’t obvious to me that there was an easy way to modify a stream like that.
Anyone have any suggestions for how to approach this? Right now my mind is going towards something like putting OBS in front of go2rtc. Hoping the hive mind can come up with something more elegant than that.
Word of caution
If anyone is trying to setup something similar, while I love having this video feed on all my devices, I would strongly recommend also investing in a simple audio only baby monitor. That is so much more practical for keeping track of the little one, especially when moving around the house. Not to mention the video delay is pretty significant.