List of Available Device Actions#
There are different device actions available depending on the device type. This page lists the available actions, and the parameters expected with each one.
Action Name |
Supported in Pharos / Mosaic Designer |
Supported in Pharos Expert |
|---|---|---|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
❌ |
|
✅ |
✅ |
|
✅ |
✅ |
|
❌ |
✅ |
|
❌ |
✅ |
|
❌ |
✅ |
|
❌ |
✅ |
|
❌ |
✅ |
simple_triggers_cond_v1#
This action fires one or more trigger(s). It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of triggers to fire |
|
boolean |
Whether to test the conditions when firing the trigger. Defaults to true if omitted |
simple_triggers_cond_v1 Example
This example will fire triggers 1 and 2, assessing the conditions for both.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "simple_triggers_cond_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "triggerIds",
"value": [1, 2]
},
{
"key": "testConditions",
"value": true
}
],
"index": 1
}
]
}
}
}
start_timelines_v1#
This action starts one or more timelines. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to start |
|
boolean |
Whether to release other timelines or scenes. Defaults to false if omitted |
|
string |
If |
|
string |
If |
|
string |
If |
|
integer |
If |
start_timelines_v1 Example
This example will start timeline 1, releasing all other timelines in the default time of 2 seconds.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "start_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [1]
},
{
"key": "releaseOthers",
"value": true
}
],
"index": 1
}
]
}
}
}
start_scenes_v1#
This action starts one or more scenes. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of scene numbers to start |
|
boolean |
Whether to release other timelines or scenes. Defaults to false if omitted |
|
string |
If |
|
string |
If |
|
string |
If |
|
integer |
If |
start_scenes_v1 Example
This example will start scene 3, leaving any active scenes as still active.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "start_scenes_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "sceneIds",
"value": [3]
},
{
"key": "releaseOthers",
"value": false
}
],
"index": 1
}
]
}
}
}
release_all_v1#
This action allows the releasing of timelines, scenes or both. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
string |
Selects what to release. Should be one of |
|
string |
Allows filtering of what to release. Should be one of |
|
string |
If |
|
integer |
The time to release the other scenes and/or timelines in milliseconds. Defaults to |
release_all_v1 Example
This example will release all scenes in group B.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "release_all_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "filterByType",
"value": "scenes"
},
{
"key": "filterByGroup",
"value": "only_group"
},
{
"key": "playbackGroup",
"value": "B"
}
],
"index": 1
}
]
}
}
}
release_timelines_v1#
This action allows the releasing of timelines. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to release |
|
integer |
The time to release the timelines in milliseconds. Defaults to |
release_timelines_v1 Example
This example will release timelines 7 and 9 in one second.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "release_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [7, 9]
},
{
"key": "releaseMilliSecs",
"value": 1000
}
],
"index": 1
}
]
}
}
}
release_scenes_v1#
This action allows the releasing of scenes. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of scene numbers to release |
|
integer |
The time to release the scenes in milliseconds. Defaults to |
release_scenes_v1 Example
This example will release scene 8 in ten seconds.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "release_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "sceneIds",
"value": [8]
},
{
"key": "releaseMilliSecs",
"value": 10000
}
],
"index": 1
}
]
}
}
}
set_groups_intensity_v1#
This action allows setting the intensity master of a group . It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
boolean |
Whether to filter by groups, or apply to all groups. If omitted, will be |
|
array of integers |
The group IDs to master |
|
floating point, |
The master intensity value, between 1 and 100 percent |
|
integer |
The fade time to apply the intensity change, in milliseconds |
|
integer |
The time to wait before applying the intensity change, in milliseconds |
set_groups_intensity_v1 Example
This example will set group 1 to an intensity master level of 50%, with a 5 second fade.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "set_groups_intensity_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "filterByGroups",
"value": true
},
{
"key": "groupIds",
"value": [1]
},
{
"key": "intensity",
"value": 50.0
},
{
"key": "fadeMilliSecs",
"value": 5000
}
],
"index": 1
}
]
}
}
}
set_rgb_override_v1#
This action allows overriding the RGB colour of a group or fixture. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
string |
What to override, either |
|
array of fixture IDs |
The Fixture IDs to apply the override to. Only applies if the |
|
array of group IDs |
The Group IDs to apply the override to. Only applies if the |
|
integer |
The fade time to apply the colour change, in milliseconds |
|
string |
The crossfade path to use when applying the override. One of |
|
float |
The intensity to set, in percent from 0.0 to 100.0. Defaults to 100.0 if omitted |
|
float |
The red value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The green value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The blue value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The colour temperature value to set, from 0.0 (Cool) to 100.0 (Warm). Defaults to 50.0 if omitted |
set_rgb_override_v1 Example
This example will set group 1 to an RGB value of (246, 141, 46) in 0-255 notation, with a 5 second fade.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "set_rgb_override_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "target",
"value": "group"
},
{
"key": "groupIds",
"value": [1]
},
{
"key": "red",
"value": 96.4
},
{
"key": "green",
"value": 55.3
},
{
"key": "blue",
"value": 18.0
},
{
"key": "fadeMilliSecs",
"value": 5000
}
],
"index": 1
}
]
}
}
}
clear_rgb_override_v1#
This action allows clearing an RGB colour of a group or fixture. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
string |
What to clear overrides on, either |
|
array of fixture IDs |
The Fixture IDs to apply the override clear to. Only applies if the |
|
array of group IDs |
The Group IDs to apply the override clear to. Only applies if the |
|
integer |
The fade time to apply the colour change, in milliseconds |
clear_rgb_override_v1 Example
This example will clear overrides on group 1 with a 5 second fade.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "clear_rgb_override_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "target",
"value": "group"
},
{
"key": "groupIds",
"value": [1]
},
{
"key": "fadeMilliSecs",
"value": 5000
}
],
"index": 1
}
]
}
}
}
pause_timelines_v1#
This action allows a specific timeline or timeline(s) to be paused. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
array of integers |
The timeline id(s) to pause |
pause_timelines_v1 Example
This example will pause timelines 2 and 6.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "pause_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [2, 6]
}
],
"index": 1
}
]
}
}
}
pause_all_timelines_v1#
This action allows all timelines to be paused. It does not require additional parameters.
pause_all_timelines_v1 Example
This example will pause all timelines.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "pause_all_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
],
"index": 1
}
]
}
}
}
resume_timelines_v1#
This action allows a specific timeline or timeline(s) which have been paused to be resumed. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
array of integers |
The timeline id(s) to resume |
resume_timelines_v1 Example
This example will resume timelines 2 and 6.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "resume_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [2, 6]
}
],
"index": 1
}
]
}
}
}
resume_all_timelines_v1#
This action allows any paused timelines to be resumed. It does not require additional parameters.
resume_all_timelines_v1 Example
This example will resume all paused timelines.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "resume_all_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
],
"index": 1
}
]
}
}
}
set_timelines_rate_v1#
This action sets the rate (i.e. increases or decreases the playback speed) of one or more timelines. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to set the rate of |
|
float |
The rate to set the timeline to, in percent. 100.0 represents default playback rate; a value between 0.0 and 100 represents slowing the timeline; a value between 100 and 10000.0 represents speeding up the timeline |
set_timelines_rate_v1 Example
This example will set timeline 1 to run at five times normal speed.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "set_timelines_rate_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [1]
},
{
"key": "rate",
"value": 500.0
}
],
"index": 1
}
]
}
}
}
set_timelines_position_v1#
This action jumps the position of playback of the specified timeline(s). It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to set the position of |
|
float |
The position to jump the timeline to. 0.0 represents the beginning of the timeline; 100.0 represents the end of the timeline |
set_timelines_position_v1 Example
This example will jump timeline 1 to one third of the way through it’s playback.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "set_timelines_position_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [1]
},
{
"key": "position",
"value": 33.3
}
],
"index": 1
}
]
}
}
}
toggle_timelines_v1#
This action toggles the playback of a timeline or timeline(s) - if it’s running, release it; if it’s not running, start it. Can optionally specify a release fade time in seconds. This action requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to toggle |
|
integer |
The release fade time in milliseconds. Assumed to be 2000 if omitted |
toggle_timelines_v1 Example
This example will toggle timeline 1 in 2 seconds.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "toggle_timelines_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "timelineIds",
"value": [1]
}
],
"index": 1
}
]
}
}
}
toggle_scenes_v1#
This action toggles the playback of a scene or scene(s) - if it’s running, release it; if it’s not running, start it. Can optionally specify a release fade time in seconds. This action requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
Array of integers |
The list of timeline numbers to toggle |
|
integer |
The release fade time in milliseconds. Assumed to be 2000 if omitted |
toggle_scenes_v1 Example
This example will toggle scene 1 in 2 seconds.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "toggle_scenes_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "sceneIds",
"value": [1]
}
],
"index": 1
}
]
}
}
}
triggers_cond_v1#
This action fires one or more trigger(s), including the option to fire a range of triggers. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
string |
The list of triggers to fire. This is a string format which can include dashes to create ranges, or commas to separate items, for example |
|
boolean |
Whether to test the conditions when firing the trigger. Defaults to true if omitted |
simple_triggers_cond_v1 Example
This example will fire triggers 1 thru 5, 8, 11 and 12, assessing the conditions for all of them.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "simple_triggers_cond_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "triggerIds",
"value": "1-5,8,11-12"
},
{
"key": "testConditions",
"value": true
}
],
"index": 1
}
]
}
}
}
beacon_v1#
This action sets the controller to perform a physical beacon, typically blinking front panel LEDs or similar:
Parameter |
Value Type |
Description |
|---|---|---|
|
boolean |
Whether to beacon - true for on, false for off |
beacon_v1 Example
This example will set the controller to beacon.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "toggle_scenes_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "enabled",
"value": true
}
],
"index": 1
}
]
}
}
}
reset_v1#
This action tells the controller to reset. No parameters are required.
Warning
Resetting a controller can lead to loss of control output. Use this command with caution.
reset_v1 Example
This example will reset the controller.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "reset_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
],
"index": 1
}
]
}
}
}
start_expert_scene_v1#
This action activates a scene in an Expert system.
Parameter |
Value Type |
Description |
|---|---|---|
|
integer |
The ID of the scene to be activated |
start_expert_scene_v1 Example
This example will activate scene 1 in the system.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "start_expert_scene_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "expertSceneId",
"value": 1
}
],
"index": 1
}
]
}
}
}
activate_expert_space_off_v1#
This action activates “Off” for a given Expert space or spaces.
Parameter |
Value Type |
Description |
|---|---|---|
|
array of integers |
The space(s) in which to activate the Off scene |
activate_expert_space_off_v1 Example
This example will activate “Off” in Space 2.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "activate_expert_space_off_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "expertSpaceIds",
"value": [2]
}
],
"index": 1
}
]
}
}
}
activate_expert_tag_v1#
This action activates a given Tag for an Expert system.
Parameter |
Value Type |
Description |
|---|---|---|
|
integer |
The tag set containing the tag to be activated |
|
integer |
The numeric ID of the tag to be activated |
activate_expert_tag_v1 Example
This example will tag 3 of tag set 2.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "activate_expert_tag_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "tagSetId",
"value": 2
},
{
"key": "tagId",
"value": 3
}
],
"index": 1
}
]
}
}
}
activate_set_space_intensity_master_v1#
This action sets the intensity master for one or more spaces in an Expert system.
Parameter |
Value Type |
Description |
|---|---|---|
|
array of integer |
The tag set containing the tag to be activated |
|
integer (0-100) |
The intensity master level to apply, in percent |
activate_set_space_intensity_master_v1 Example
This example will master the intensity of space 1 and 2 to 80%.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "activate_set_space_intensity_master_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "expertSpaceIds",
"value" : [1, 2]
},
{
"key": "intensity",
"value": 80
}
],
"index": 1
}
]
}
}
}
set_expert_rgb_override_v1#
This action allows overriding the RGB colour of an Expert space. It requires the following parameters:
Parameter |
Value Type |
Description |
|---|---|---|
|
string |
What to override. Currently only |
|
array of space IDs |
The spaces to apply the override to. |
|
integer |
The fade time to apply the colour change, in milliseconds |
|
string |
The crossfade path to use when applying the override. One of |
|
float |
The intensity to set, in percent from 0.0 to 100.0. Defaults to 100.0 if omitted |
|
float |
The red value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The green value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The blue value to set, in percent from 0.0 to 100.0. Defaults to 0.0 if omitted |
|
float |
The colour temperature value to set, from 0.0 (Cool) to 100.0 (Warm). Defaults to 50.0 if omitted |
set_expert_rgb_override_v1 Example
This example will set group 1 to an RGB value of (246, 141, 46) in 0-255 notation, with a 5 second fade.
{
"data": {
"attributes": {
"projectId": "{{project_id}}",
"actions": [
{
"typeId": "set_expert_rgb_override_v1",
"logicalDeviceId": "{{device_id}}",
"params": [
{
"key": "target",
"value": "space"
},
{
"key": "expertSpaceIds",
"value": [1]
},
{
"key": "red",
"value": 96.4
},
{
"key": "green",
"value": 55.3
},
{
"key": "blue",
"value": 18.0
},
{
"key": "fadeMilliSecs",
"value": 5000
}
],
"index": 1
}
]
}
}
}