Yes, I would love to have a custom button to assign things.
I got this to work in a roundabout way with my Shelly using one of the PTZ presets to turn on lights
I later set
Blue Iris to detect people (Alert) with the AI but still have the option to turn it on from BI.
If you had BI set up for the license plate, you could have it open for you as you drove up.
The Shelly will work off of 12V or 120AC
Shelly device on Amazon
After the Shelly device is set up with the App and has an IP address create the script.
shelly.blue_iris_gate_open.PS1 script
Copy the following Bold lines into Notepad and save it as shelly.blue_iris_gate_open.PS1 or to your liking.
#Shelly device IP address - replace with your IP address
$myShellyIp = "192.168.0.62";
# Send a signal to turn on the switch - "Emulate button being pushed to open gate"
$myShellyStateOn = (Invoke-WebRequest -Method GET http://$myShellyIp/relay/0?turn=on).Content | ConvertFrom-Json;
$myShellyStateOn;
#Emulate pushing the button for five seconds
Start-Sleep -Seconds 5;
# Send a signal to turn on the switch
$myShellyStateOff = (Invoke-WebRequest -Method GET http://$myShellyIp/relay/0?turn=off).Content | ConvertFrom-Json;
$myShellyStateOff;
**Note: you may have to activate the Powershell service - Just start up a Powershell and test the script by typing:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\Users\
Coldair\shelly_device_scripts\shelly.blue_iris_gate_open.PS1
If not turned on, it will give an error that you can google to turn on.
Blue Iris:
1. Camera settings
2. PTZ/Control
3. Edit presets
4. Click on preset (Preset1)
5. Rename Open Gate
6. Click on the "On call" button
7. Click the Plus button to create an action in the "Action set" screen
8. Select "Run a program or write to a file"
9. In the File field enter C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
10. In the Parameters field enter your script -File C:\Users\
Coldair\shelly_device_scripts\shelly.blue_iris_gate_open.PS1
11. Click OK to save and stuff out to the main screen.
Once setup you can access from both the App and UI3
