Entirely new side project, I am working on a way to auto-stream 3d printing progress via Twitch. Not that there is a big audience to watch a printer run for 24 hours, but there might be some curiousity. Really, it is just an exercise to see if I can do it – I already have the equipment and software, the project is really just turning it on (and troubleshooting).
Currently, using a combination of Home Assistant, smart plugs, and OctoPrint, my configuration will automatically turn on and off a light at the printer, so that I can monitor it inside the house at any time. My goal is to increase that automation, to auto-start and auto-end a Twitch stream at the same time. That way every time I start a print, I don’t have to remember to activate the stream, or turn it off when completed.
Basic OBS layout is easy, a camera feed and some basic graphics and good to go. Twitch configuration is similarly easy – just integrate and all set. Where my challenge lies is getting Home Assistant to recognize and talk to OBS, to be able to report status and more importantly to update the Stream to “active” or “inactive” as needed. From some initial searches, this seems to be possible thru MQTT announcements, but the initial software scripts are not working (or more likely, I have something set incorrectly).
Further research and digging will be necessary, or I may take a different approach entirely. Stay tuned for any updates, or feel free to check the current streams, being activated and deactivated manually for now. If you have any thoughts, or long shot, have done something similar, I would love to hear your feedback and ideas.