Use Node Red to save current Blue Iris Profile and then restore it later

Hello,

I’m using this integration GitHub - elad-bar/ha-blueiris: Integration with Blue Iris Video Security Software to control my Blue Iris NVR. I have a Node Red Flow I’m trying to sort out. My goal is that when my kids play in the driveway if the outside cameras detect excessive motion alerts in a short time it changes the profile in Blue Iris to prevent me from getting continuous motion alerts while they are playing. Then once motion alerts have stopped for a specific time, restore the original profile that BI was using. I have the first part of changing profiles to avoid alerts worked out.

The part I’m struggling with is reading the profile before it is changed and then restoring it to the correct one. I tried using scene.create and scene.turn_on but that isn’t working for one reason or another. I don’t get any error messages, but I think it might have to do with the way the integration is. Each profile has a switch, but only one can be turned on at a time.

Any help would be much appreciated. Thanks!