bi_get_actionset
Get a camera's OnTrigger/OnReset action sets as readable lists, decoding command types, PTZ presets, web protocols, and zone bitmasks. Use raw output for unmapped values. Helps understand and configure camera actions.
Instructions
Return the semantic action set (OnTrigger and/or OnReset) for a camera. Decodes the full action type map (0-13), the command table for type=12 do-commands (PTZ presets 2201-2456, action sets, brightness/contrast/gain, plus ~60 individual codes), web_proto1 (http/https/mqtt), run_action, trig_allzones, and the profiles/zones/diobits/trig_source bitmasks into readable lists. Unmapped values fall through with the raw int preserved alongside (e.g. command_raw, trig_source_raw). Source data comes from the camera's .reg export, so changes made via the BI UI mid-session won't be visible until a re-export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | If true, return the raw Blue Iris JSON instead of the shaped view. | |
| hook | No | Which hook to return: 'on_trigger', 'on_reset', or 'both' (default). | |
| camera | Yes | Camera short name (e.g. 'SecCam_3'). Required. |