Blue Iris PTZ Presets Button

Looking for some direction in getting my Amcrest camera PTZ setup properly in the front end. I don’t want to use the Amcrest plug-in as that would require me to setup routing on my security VLAN. Blue Iris can handle all of these for me so I should be able to work around this requirement but I’m not seeing the way to do this.

I would prefer to use a small thumbnail image of each camera preset that acts as a button. When clicking that image an API call will be triggers to Blue Iris.

A sample of the presets are as follows, there are 12 defined.

PRESET_ID = PRESET_NAME
1 = "Front Door"
2 = "Mailbox"

The trigger for the switch is http://192.168.86.110:81/admin?camera=PTZ1&preset={{PRESET_ID}}&user={{BI_USER}}&pw={{BI_PASS}}

Looks like I can define the URL via either shell_command or rest_command in configuration.yaml. I would think the rest_command would be more flexible.

Now for my questions.

  • Do I need to create 12 different rest_commands within the configuration or can I use variables for the PREST_ID?
  • How do I create the image “button” in lovelace?