Just remember that Sonoff unbeknowns to the man in the street has changed its chipset over iterations of models.
Check the firmware matches the part number of your Sonoff. (MPN)
What about trigger the BlueIris camera using MQTT from NodeMCU 8266 board? I use tasmota firmware. Will this work and how to get BI to accept the MQTT command so it trigger the input.