I just finished setting up Kodi on my RPi, so now I have 3 installed OSs (Kodi, Retro Pie, and Raspbian). I've also got homebridge and node-red running and after setting up Kodi, I had an idea. It would be really cool if I could switch OSs by telling Siri "Turn on <Kodi|Retro Pie|Raspbian>". I envision this doing 2 things: quit/kill the currently running OS and start up the other. And I thought... instead of writing a shell script to do it, I might experiment with doing it in a flow. However, how do I get homebridge and Node-Red to cooperate?
I currently have a homebridge plugin called homebridge-commander that executes command-line utilities. I use it primarily for turning on/off my RF outlets using pilight-send's raw protocol. If I write a flow to do the OS switch I'm envisioning, what command can I put in homebridge-commander to trigger the flow to run?
Note, node-red is always running. I saw that you can run a flow (on startup?) from the command-line, but it's not clear to me from the documentation whether that starts up a separate instance of node-red or whether it tells the currently running node-red to run the supplied flow.