function buildCommandAction(name, value, stateUpdate = null) {
  return {
    isCommand: true,
    name,
    value,
    stateUpdate: stateUpdate || [],
  };
}
@description Build a command action.
@param {string} name - Command name.
@param {any[]} value - Value to send to the command.
@param {Array|null} stateUpdate - State synchronization.
@returns {object} Action to perform.
@example buildCommandAction('stopLevelChange', []);